'test_handler' -> 'hook_handler'
This commit is contained in:
parent
449e690ad7
commit
82f77472c6
1 changed files with 4 additions and 4 deletions
|
@ -43,10 +43,10 @@ class Log(object):
|
|||
stdout_handler.setFormatter(formatter)
|
||||
self.logger.addHandler(stdout_handler)
|
||||
|
||||
test_handler = HookedHandler(self._on_log)
|
||||
test_handler.setLevel(LEVELS["debug"])
|
||||
test_handler.setFormatter(formatter)
|
||||
self.logger.addHandler(test_handler)
|
||||
hook_handler = HookedHandler(self._on_log)
|
||||
hook_handler.setLevel(LEVELS["debug"])
|
||||
hook_handler.setFormatter(formatter)
|
||||
self.logger.addHandler(hook_handler)
|
||||
|
||||
if to_file:
|
||||
trace_path = os.path.join(location, "trace.log")
|
||||
|
|
Loading…
Reference in a new issue