Additional debug logging.
This commit is contained in:
5
app.py
5
app.py
@@ -1,5 +1,7 @@
|
||||
import functools
|
||||
import logging
|
||||
import os
|
||||
|
||||
from flask import Flask, g, render_template, request, redirect, session
|
||||
|
||||
import db
|
||||
@@ -8,6 +10,9 @@ import models
|
||||
|
||||
logging.basicConfig(filename='estus-shots.log', level=logging.DEBUG)
|
||||
|
||||
logging.info(f'Starting with working dir: {os.getcwd()}')
|
||||
logging.info(f'App file location: {os.path.abspath(__file__)}')
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
app.secret_key = 'THIS IS A TEST KEY'
|
||||
|
||||
Reference in New Issue
Block a user