зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5c20e8c063
Коммит
39f2cb9cf8
|
@ -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 #
|
||||
###########################
|
||||
|
|
Загрузка…
Ссылка в новой задаче