Funnel debug logging through nose properly.
Change-Id: Ic76289c702ed54c9bf7b9fa4cb140d62049dfb9e
This commit is contained in:
parent
7aa688a897
commit
95fb6e5f89
@ -20,10 +20,12 @@
|
||||
import __builtin__
|
||||
setattr(__builtin__, '_', lambda x: x)
|
||||
|
||||
# Set up logging to output debugging
|
||||
import logging
|
||||
import sys
|
||||
|
||||
# Set up logging to output debugging
|
||||
logger = logging.getLogger()
|
||||
hdlr = logging.FileHandler('run_tests.log', 'w')
|
||||
hdlr = logging.StreamHandler(sys.stdout)
|
||||
formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
|
||||
hdlr.setFormatter(formatter)
|
||||
logger.addHandler(hdlr)
|
||||
|
Loading…
Reference in New Issue
Block a user