logging - Supervisord does not show stdout from processes -


trying capture logs of app supervisor in docker.

here's supervisord.conf:

[supervisord] logfile=/dev/null nodaemon=true  [program:autofs] command=automount -f redirect_stderr=true stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0  [program:split-pdf] command=bin/split-pdf-server directory=/root/split-pdf redirect_stderr=true stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 

after starting container works, , can see result of app running (it creates pdf files on network share)

but log shows no output app:

015-07-02 00:39:26,119 crit supervisor running root (no user in config file) 2015-07-02 00:39:26,124 info supervisord started pid 5 2015-07-02 00:39:27,127 info spawned: 'split-pdf' pid 8 2015-07-02 00:39:27,130 info spawned: 'autofs' pid 9 2015-07-02 00:39:28,132 info success: split-pdf entered running state, process has stayed > 1 seconds (startsecs) 2015-07-02 00:39:28,132 info success: autofs entered running state, process has stayed > 1 seconds (startsecs) 

that's output see when attaching docker container.

i'm on ubuntu 15.04 docker 1.7.0

this not duplicate of this question, because i'm running more 1 process in container.

it turns out works, delay. when tried create container other app produces more log messages, messages started appearing in log file, delay.

the first app testing had 2 lines per task in log, , guess there's kind of buffer needs filled before starts flushing log file.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -