Skip to content

Commit 3604ea6

Browse files
author
rain
committed
add logger
1 parent 98fdcaf commit 3604ea6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def init_app(cls, app):
5252
mode='w', maxBytes=1024 * 1024 * 100,
5353
backupCount=20,
5454
encoding="utf-8")
55-
file_handler.setLevel(logging.WARNING)
55+
# file_handler.setLevel(logging.INFO)
56+
logging.basicConfig(level=logging.INFO)
5657
app.logger.addHandler(file_handler)
5758

5859
from logging import Formatter

0 commit comments

Comments
 (0)