Skip to content

Commit 2278abf

Browse files
committed
change logfile mode
1 parent 15a049d commit 2278abf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

demo/fastapi_demo/textfsm_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
format="%(asctime)s %(filename)s[line:%(lineno)d ] %(levelname)s %(message)s", # 时间 文件名 line:行号 levelname logn内容
1717
datefmt="%d %b %Y,%a %H:%M:%S", # 日 月 年 ,星期 时 分 秒
1818
filename=parent_path + "/log/gunicorn_access.log",
19-
filemode="w",
19+
filemode="a+",
2020
)
2121

2222

0 commit comments

Comments
 (0)