Add a bit of verbose debug to the sqlite middleware

Change-Id: I83c98b1bcaa29f2d7001f08b9e2998f3b1ce7e9d
This commit is contained in:
David Moreau Simard 2018-04-04 13:42:43 -04:00
parent 05ea4528d3
commit 5e8b4df09b
1 changed files with 7 additions and 0 deletions

View File

@ -124,6 +124,13 @@ def application(environ, start_response):
# This needs to be a string, we're setting an environment variable
os.environ['ARA_AUTOCREATE_DATABASE'] = 'false'
msg = 'Request {request} mapped to {database} with root {root}'.format(
request=request,
database='sqlite:///{}'.format(database),
root=match.group('path')
)
logger.debug(msg)
from ara.webapp import create_app
try:
app = create_app()