Skip to content

Commit e71a8cb

Browse files
author
李茂益
committed
修改报错信息
1 parent 9226021 commit e71a8cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
app = Flask(__name__)
1212
# 设置日志级别
13-
app.logger.setLevel(logging.INFO)
13+
app.logger.setLevel(logging.DEBUG)
1414

1515
# 创建日志处理器
1616
handler = logging.FileHandler('app.log', encoding='utf-8')
17-
handler.setLevel(logging.INFO)
17+
handler.setLevel(logging.DEBUG)
1818

1919
# 创建日志格式
2020
formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')

0 commit comments

Comments
 (0)