Improve debug logging level

This commit is contained in:
Yax 2016-05-09 13:10:11 +02:00
parent 7049e9e905
commit f2d95da063
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ def query_comments():
if comment.author_email:
d['avatar'] = md5(comment.author_email.strip().lower())
d['date'] = comment.published.strftime("%Y-%m-%d %H:%M:%S")
logger.info(d)
logger.debug(d)
comments.append(d)
r = jsonify({'data': comments})
r.status_code = 200
@ -155,4 +155,3 @@ def reject_comment():
abort(500)
return "REJECTED"

View file

@ -66,6 +66,7 @@ cors = CORS(app, resources={r"/comments/*": {"origins": "*"}})
# tune logging level
if not config.DEBUG:
logging.getLogger('flask_cors').level = logging.WARNING
logging.getLogger('app.cors').level = logging.WARNING
logging.getLogger('werkzeug').level = logging.WARNING
app.run(host=config.HTTP_ADDRESS,