Skip to content

Commit ba0efed

Browse files
committed
chroe: 修改核心库依赖版本号
1 parent ee8080a commit ba0efed

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Flask = "==1.0.2"
1212
Flask-SQLAlchemy = "==2.3.2"
1313
Flask-WTF = "==0.14.2"
1414
Flask-Cors = "==2.1.0"
15-
Lin-CMS = "==0.1.1b3"
15+
Lin-CMS = "==0.1.1b4"
1616

1717
[dev-packages]
1818
pytest = "*"

app/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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\tparam: %s, \n\tbody: %s\n} " % (

app/config/log.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
:copyright: © 2019 by the Lin team.
33
:license: MIT, see LICENSE for more details.
44
"""
5-
65
LOG = {
76
'LEVEL': 'DEBUG',
87
'DIR': 'logs',
98
'SIZE_LIMIT': 1024 * 1024 * 5,
10-
'REQUEST_LOG': True
9+
'REQUEST_LOG': True,
10+
'FILE': True
1111
}

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Flask-WTF==0.14.2
1010
idna==2.6
1111
itsdangerous==1.1.0
1212
Jinja2==2.10
13-
Lin-CMS==0.1.1b3
13+
Lin-CMS==0.1.1b4
1414
MarkupSafe==1.1.1
1515
pipfile==0.0.2
1616
PyJWT==1.7.1

0 commit comments

Comments
 (0)