« Previous | Next » 

Revision 6346a9e5

ID6346a9e5f87073d0d80c63f53c1823e2f42edf4b
Parent a3811745
Child 4c7c81d7

Added by Michael Hanselmann almost 14 years ago

utils.SetupLogging: Remove previously setup handlers

If a logging function is called before the logging module is setup
using utils.SetupLogging, it calls logging.basicConfig, which adds
a StreamHandler, on its own. If we leave it in, all log output will
be printed twice on stderr. This patch makes sure to remove all
handlers before adding our own.

Reviewed-by: iustinp

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences