Skip to content

Commit 45c28d3

Browse files
author
Konstantinos Paliouras
committed
Fix #38 crash on at init_app()
1 parent 99d49b0 commit 45c28d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_log_request_id/request_id.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _persist_request_id():
8181
setattr(g, g_object_attr, self._request_id_generator())
8282

8383
# Register after request
84-
if self.app.config['LOG_REQUEST_ID_LOG_ALL_REQUESTS']:
84+
if app.config['LOG_REQUEST_ID_LOG_ALL_REQUESTS']:
8585
app.after_request(self._log_http_event)
8686

8787
@staticmethod

0 commit comments

Comments
 (0)