Skip to content

Commit

Permalink
allow log_page_view
Browse files Browse the repository at this point in the history
  • Loading branch information
colinbowen committed Dec 12, 2024
1 parent 490eb04 commit 492f6ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/logger_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ def format(self, record):

for frame in inspect.stack():
module_name = str(frame.frame.f_globals.get("__name__", ""))
if (
"app.logger_config" not in module_name
and "app.main.middlewares.log_page_view" not in module_name
):
if "app.logger_config" not in module_name:
if "app." in module_name:
caller_function = frame.function
caller_module = module_name
Expand Down

0 comments on commit 492f6ec

Please sign in to comment.