diff --git a/app.py b/app.py index 9faca76..1bd9763 100644 --- a/app.py +++ b/app.py @@ -3,6 +3,7 @@ from models import RedditData import spotipy import prawcore +import logging from xml.sax import saxutils as su @@ -102,4 +103,5 @@ def page_not_found(e): # return render_template('about.html') if __name__ == '__main__': + logging.basicConfig(filename='./log/flask_output.log', level=logging.DEBUG) app.run(debug=True, use_reloader=True, host='0.0.0.0', port=8300) diff --git a/log/flask_output.log b/log/flask_output.log new file mode 100644 index 0000000..14f8fa7 --- /dev/null +++ b/log/flask_output.log @@ -0,0 +1,8 @@ +INFO:werkzeug: * Restarting with stat +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 226-487-391 +INFO:werkzeug: * Running on http://0.0.0.0:8300/ (Press CTRL+C to quit) +INFO:werkzeug: * Restarting with stat +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 226-487-391 +INFO:werkzeug: * Running on http://0.0.0.0:8300/ (Press CTRL+C to quit)