Skip to content

Commit

Permalink
Fix #38 crash on at init_app()
Browse files Browse the repository at this point in the history
  • Loading branch information
sque committed Oct 31, 2019
1 parent 99d49b0 commit 45c28d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_log_request_id/request_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _persist_request_id():
setattr(g, g_object_attr, self._request_id_generator())

# Register after request
if self.app.config['LOG_REQUEST_ID_LOG_ALL_REQUESTS']:
if app.config['LOG_REQUEST_ID_LOG_ALL_REQUESTS']:
app.after_request(self._log_http_event)

@staticmethod
Expand Down

1 comment on commit 45c28d3

@jloehel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sque It would be awesome if you could publish a new version with that fix. :-)

Please sign in to comment.