This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 4f461c3  Add a message on how to make log refresh immediately when 
starting a component (#6078)
4f461c3 is described below

commit 4f461c3bd36ad832789a6f9186f77da151aba5a5
Author: Fangbin Sun <[email protected]>
AuthorDate: Sun Mar 1 04:41:55 2020 +0800

    Add a message on how to make log refresh immediately when starting a 
component (#6078)
    
    ### Motivation
    
    Some users may confuse by pulsar/bookie log without flushing immediately.
    
    ### Modifications
    
    Add a message in `bin/pulsar-daemon` when starting a component.
---
 bin/pulsar-daemon | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/pulsar-daemon b/bin/pulsar-daemon
index 3d555dd..196aaa7 100755
--- a/bin/pulsar-daemon
+++ b/bin/pulsar-daemon
@@ -151,6 +151,7 @@ case $startStop in
 
     rotate_out_log $out
     echo starting $command, logging to $logfile
+    echo Note: Set immediateFlush to true in conf/log4j2.yaml will guarantee 
the logging event is flushing to disk immediately. The default behavior is 
switched off due to performance considerations.
     pulsar=$PULSAR_HOME/bin/pulsar
     nohup $pulsar $command "$@" > "$out" 2>&1 < /dev/null &
     echo $! > $pid

Reply via email to