I have the following function:
@app.route('/db')
def db():
_, cursor = get_db()
print ('11111111111')
logging.info('2222222222')
return jsonify(x="new")
For whatever reason, the logging
items don't show up in Logs Explorer, I just see the print
statements which show up with the default
severity. Where are my logging
logs going and how can I view them?
CodePudding user response:
Did you set the level? Remember the default is WARNING
so you have to do something like logging.basicConfig(level=logging.INFO)
before you start using logging.info()