Bug 1045255 - Add back global logging setup removed in bug 886570 needed for leak logging on a CLOSED TREE.;r=gps

This commit is contained in:
Chris Manchester 2014-07-28 19:51:55 -04:00
Родитель 5c20e8c063
Коммит 39f2cb9cf8
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -47,6 +47,18 @@ from mozlog.structured.structuredlog import StructuredLogger
# not yet present in the mozharness environment
from mozrunner.utils import findInPath as which
# Necessary to set up the global logger in automationutils.py
import logging
log = logging.getLogger()
def resetGlobalLog():
while log.handlers:
log.removeHandler(log.handlers[0])
handler = logging.StreamHandler(sys.stdout)
log.setLevel(logging.INFO)
log.addHandler(handler)
resetGlobalLog()
###########################
# Option for NSPR logging #
###########################