mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 21:39:00 +08:00
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:
parent
31da511d1d
commit
d0951ee27b
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user