Discussion:
[Supervisor-users] Question about child python processes
Vincent Derelle
2013-10-31 20:17:00 UTC
Permalink
Hello,

We wrote an internal tool inside our organisation in python. We're trying to get it to play nicely with supervisord. We came across the known python buffered output issue where the python child process does not
Write to the stdout log file. Instead we need to pass a -u parameter to the python interpreter in order to properly get the print statements written to the stdout log file. Our program also uses to Python logging
Librairy extensively. Unfortunately, even with specifying a -u parameter we are unable to get the logging.info("information displayed") lines written to the stdout logfile.

Is anyone aware of this bug? Is there any fix for it?

Thank you,
Vincent
Aryeh Leib Taurog
2013-10-31 22:02:20 UTC
Permalink
Post by Vincent Derelle
Unfortunately, even with specifying a -u parameter we are unable to
get the logging.info("information displayed") lines written to the
stdout logfile.
Is anyone aware of this bug? Is there any fix for it?
Check the log level?
Matt Black
2013-10-31 22:24:14 UTC
Permalink
The unbuffered output (-u) parameter will have no bearing on the function
of your python logging lib calls.

I suggest you tinker with the setup for the logger until you get it working
- does it work outside supervisor? Running within supervisor or standalone
will likewise have no bearing on the logging library.
Hello,****
** **
We wrote an internal tool inside our organisation in python. We’re trying
to get it to play nicely with supervisord. We came across the known python
buffered output issue where the python child process does not ****
Write to the stdout log file. Instead we need to pass a –u parameter to
the python interpreter in order to properly get the print statements
written to the stdout log file. Our program also uses to Python logging **
**
Librairy extensively. Unfortunately, even with specifying a –u parameter
we are unable to get the logging.info(“information displayed”) lines
written to the stdout logfile. ****
** **
Is anyone aware of this bug? Is there any fix for it?****
** **
Thank you,****
Vincent****
** **
_______________________________________________
Supervisor-users mailing list
https://lists.supervisord.org/mailman/listinfo/supervisor-users
Loading...