mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
use coloredlogs
This commit is contained in:
parent
2e23a1bf19
commit
4caafc7e7b
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@ import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import boto3
|
import boto3
|
||||||
|
import coloredlogs
|
||||||
import watchtower
|
import watchtower
|
||||||
|
|
||||||
from app.config import (
|
from app.config import (
|
||||||
|
@ -65,6 +66,8 @@ def _get_logger(name):
|
||||||
# no propagation to avoid propagating to root logger
|
# no propagation to avoid propagating to root logger
|
||||||
logger.propagate = False
|
logger.propagate = False
|
||||||
|
|
||||||
|
coloredlogs.install(level="DEBUG", logger=logger)
|
||||||
|
|
||||||
return logger
|
return logger
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue