formatting
This commit is contained in:
parent
b5e5c14239
commit
d052949517
@ -21,8 +21,9 @@ def init_logger(app: Flask, log_level=INFO) -> Flask:
|
||||
to_file = FileHandler(os.environ.get('MRE_LOG_PATH', f'./{app.name}.log'))
|
||||
to_file.setFormatter(formatter)
|
||||
logger.addHandler(to_file)
|
||||
|
||||
|
||||
app.logger = logger
|
||||
|
||||
return app
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user