Przeglądaj źródła
fix: logger formater is not work (#1090)
### What problem does this PR solve?
as title
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.8.0
Wang Baoling
1 rok temu
No account linked to committer's email address
|
|
|
@@ -154,6 +154,11 @@ class LoggerFactory(object): |
|
|
|
delay=True)
|
|
|
|
if level:
|
|
|
|
handler.level = level
|
|
|
|
else:
|
|
|
|
handler.level = LoggerFactory.LEVEL
|
|
|
|
|
|
|
|
formatter = logging.Formatter(LoggerFactory.LOG_FORMAT)
|
|
|
|
handler.setFormatter(formatter)
|
|
|
|
|
|
|
|
return handler
|
|
|
|
|