mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 11:27:49 +00:00
Bug 1026710 - Change DeviceManager to mozdevice when logging. DONTBUILD. r=wlach
This commit is contained in:
parent
0df3a31848
commit
c13ca99b13
@ -48,9 +48,9 @@ class DeviceManager(object):
|
||||
|
||||
def __init__(self, logLevel=mozlog.ERROR, deviceRoot=None):
|
||||
try:
|
||||
self._logger = mozlog.structured.structuredlog.get_default_logger(component="DeviceManager")
|
||||
self._logger = mozlog.structured.structuredlog.get_default_logger(component="mozdevice")
|
||||
if not self._logger: # no global structured logger, fall back to reg logging
|
||||
self._logger = mozlog.getLogger("DeviceManager")
|
||||
self._logger = mozlog.getLogger("mozdevice")
|
||||
self._logger.setLevel(logLevel)
|
||||
except AttributeError:
|
||||
# Structured logging doesn't work on Python 2.6
|
||||
|
Loading…
x
Reference in New Issue
Block a user