Skip to content

Commit

Permalink
add print
Browse files Browse the repository at this point in the history
  • Loading branch information
colinbowen committed Dec 10, 2024
1 parent 425cba6 commit afce02a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/logger_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def format(self, record):
def get_calling_function_name(self, record):
if record.stack_info:
stack_frames = inspect.extract_stack(record.stack_info)
print("STACK FRAMES", stack_frames)
if len(stack_frames) > 1:
# The second frame is the calling function
calling_frame = stack_frames[-2]
Expand Down

0 comments on commit afce02a

Please sign in to comment.