瀏覽代碼

Remove redirect_stderr from evenlistener examples. Refs #220

Mike Naberezny 10 年之前
父節點
當前提交
38cff5d11e
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      docs/configuration.rst
  2. 2 2
      docs/logging.rst
  3. 1 1
      supervisor/skel/sample.conf

+ 1 - 1
docs/configuration.rst

@@ -1321,7 +1321,7 @@ above constraints and additions.
    stopsignal=QUIT
    stopwaitsecs=10
    user=chrism
-   redirect_stderr=true
+   redirect_stderr=false
    stdout_logfile=/a/path
    stdout_logfile_maxbytes=1MB
    stdout_logfile_backups=10

+ 2 - 2
docs/logging.rst

@@ -143,8 +143,8 @@ special string "syslog". In this case, logs will be routed to the
 syslog service instead of being saved to files.
 
 ``[eventlistener:x]`` sections may not specify
-``stdout_capture_maxbytes`` or ``stderr_capture_maxbytes``,
-but otherwise they accept the same values.
+``redirect_stderr``, ``stdout_capture_maxbytes``, or
+``stderr_capture_maxbytes``, but otherwise they accept the same values.
 
 The configuration keys that influence child process logging in the
 ``[supervisord]`` config file section are these:

+ 1 - 1
supervisor/skel/sample.conf

@@ -111,7 +111,7 @@ serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL  for a unix socket
 ;stopasgroup=false             ; send stop signal to the UNIX process group (default false)
 ;killasgroup=false             ; SIGKILL the UNIX process group (def false)
 ;user=chrism                   ; setuid to this UNIX account to run the program
-;redirect_stderr=true          ; redirect proc stderr to stdout (default false)
+;redirect_stderr=false         ; redirect_stderr=true is not allowed for eventlisteners
 ;stdout_logfile=/a/path        ; stdout log path, NONE for none; default AUTO
 ;stdout_logfile_maxbytes=1MB   ; max # logfile bytes b4 rotation (default 50MB)
 ;stdout_logfile_backups=10     ; # of stdout logfile backups (default 10)