« Previous | Next » 

Revision ff5fac04

Parent c89189b1
Child c8549bfd

Added by Iustin Pop almost 16 years ago

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

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


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences