Add a bit of verbose debug to the sqlite middleware
Change-Id: I83c98b1bcaa29f2d7001f08b9e2998f3b1ce7e9d
This commit is contained in:
parent
05ea4528d3
commit
5e8b4df09b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue