mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00:00
daqpower: updating to work with new versions of twisted.
This commit is contained in:
parent
89da25c25e
commit
39ed42ccb9
BIN
wlauto/external/daq_server/daqpower-1.0.4.tar.gz
vendored
BIN
wlauto/external/daq_server/daqpower-1.0.4.tar.gz
vendored
Binary file not shown.
BIN
wlauto/external/daq_server/daqpower-1.0.5.tar.gz
vendored
Normal file
BIN
wlauto/external/daq_server/daqpower-1.0.5.tar.gz
vendored
Normal file
Binary file not shown.
@ -14,4 +14,4 @@
|
||||
#
|
||||
|
||||
|
||||
__version__ = '1.0.4'
|
||||
__version__ = '1.0.5'
|
||||
|
@ -29,6 +29,11 @@ critical = lambda x: log.msg(x, logLevel=logging.CRITICAL)
|
||||
|
||||
class CustomLoggingObserver(log.PythonLoggingObserver):
|
||||
|
||||
def __init__(self, loggerName="twisted"):
|
||||
super(CustomLoggingObserver, self).__init__(loggerName)
|
||||
if not hasattr(self, '_newObserver'): # new vesions of Twisted
|
||||
self.logger = self._newObserver.logger # pylint: disable=no-member
|
||||
|
||||
def emit(self, eventDict):
|
||||
if 'logLevel' in eventDict:
|
||||
level = eventDict['logLevel']
|
||||
|
Loading…
x
Reference in New Issue
Block a user