« Previous | Next » 

Revision ff5fac04

IDff5fac045a18b6e79f9ba490728a54d5c73dd666
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
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

View differences