Ver código fonte

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 ano atrás
pai
commit
d0951ee27b
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5
    0
      api/utils/log_utils.py

+ 5
- 0
api/utils/log_utils.py Ver arquivo

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

Carregando…
Cancelar
Salvar