Revision ff5fac04
ID | ff5fac045a18b6e79f9ba490728a54d5c73dd666 |
Parent | c89189b1 |
Child | c8549bfd |
Fix double-logging in daemons
Currently, in debug mode, both the logfile handler and the stderr
handler will log debug messages. Since the stderr is redirected to the
same logfile (to catch non-logged errors), it means log entries are
doubled.
The patch adds an extra parameter to the logger.SetupDaemon() function
that allows disabling of the stderr logging. The master and node daemon
will use this to enable stderr logging only when running in foreground.
Reviewed-by: imsnah
Files
- added
- modified
- copied
- renamed
- deleted