File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Flask = "==1.0.2"
1212Flask-SQLAlchemy = " ==2.3.2"
1313Flask-WTF = " ==0.14.2"
1414Flask-Cors = " ==2.1.0"
15- Lin-CMS = " ==0.1.1b3 "
15+ Lin-CMS = " ==0.1.1b4 "
1616
1717[dev-packages ]
1818pytest = " *"
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def log_response(resp):
5151 elif log_config ['LEVEL' ] == 'DEBUG' :
5252 req_body = '{}'
5353 try :
54- req_body = request .get_json ()
54+ req_body = request .get_json () if request . get_json () else {}
5555 except :
5656 pass
5757 message += " data:{\n \t param: %s, \n \t body: %s\n } " % (
Original file line number Diff line number Diff line change 22 :copyright: © 2019 by the Lin team.
33 :license: MIT, see LICENSE for more details.
44"""
5-
65LOG = {
76 'LEVEL' : 'DEBUG' ,
87 'DIR' : 'logs' ,
98 'SIZE_LIMIT' : 1024 * 1024 * 5 ,
10- 'REQUEST_LOG' : True
9+ 'REQUEST_LOG' : True ,
10+ 'FILE' : True
1111}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Flask-WTF==0.14.2
1010idna == 2.6
1111itsdangerous == 1.1.0
1212Jinja2 == 2.10
13- Lin-CMS == 0.1.1b3
13+ Lin-CMS == 0.1.1b4
1414MarkupSafe == 1.1.1
1515pipfile == 0.0.2
1616PyJWT == 1.7.1
You can’t perform that action at this time.
0 commit comments