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)
This commit is contained in:
Wang Baoling 2024-06-07 13:48:56 +08:00 committed by GitHub
parent 31da511d1d
commit d0951ee27b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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