Skip to content

Commit

Permalink
更改console从app获取的问题
Browse files Browse the repository at this point in the history
Signed-off-by: tinybees <a598824322@163.com>
  • Loading branch information
tinybees committed Sep 27, 2020
1 parent f9479d8 commit 5a7b0e6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions aelog/aelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ def init_app(app=None, *, aelog_access_file: str = None, aelog_error_file: str =
"""
if app is not None:
aelog_access_file = app.config.get("AELOG_ACCESS_FILE", None) or aelog_access_file
aelog_error_file = app.config.get("AELOG_ERROR_FILE", None) or aelog_error_file
aelog_console = app.config.get("AELOG_CONSOLE", None) or aelog_console
aelog_level = app.config.get("AELOG_LEVEL", None) or aelog_level
aelog_max_bytes = app.config.get("AELOG_MAX_BYTES", None) or aelog_max_bytes
aelog_backup_count = app.config.get("AELOG_BACKUP_COUNT", None) or aelog_backup_count
aelog_access_file = app.config.get("AELOG_ACCESS_FILE") or aelog_access_file
aelog_error_file = app.config.get("AELOG_ERROR_FILE") or aelog_error_file
aelog_console = app.config.get("AELOG_CONSOLE", aelog_console)
aelog_level = app.config.get("AELOG_LEVEL") or aelog_level
aelog_max_bytes = app.config.get("AELOG_MAX_BYTES") or aelog_max_bytes
aelog_backup_count = app.config.get("AELOG_BACKUP_COUNT") or aelog_backup_count

if aelog_access_file is None:
aelog_conf = aelog_default_config(loglevel=aelog_level)
Expand Down

0 comments on commit 5a7b0e6

Please sign in to comment.