Skip to content

Commit

Permalink
fixed presenting log line location
Browse files Browse the repository at this point in the history
  • Loading branch information
godfryd committed Nov 18, 2023
1 parent 78a2850 commit ee3017d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/kraken/server/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _log(self, level, msg, args, exc_info=None, extra=None, stack_info=False, **
extra.update(StructLogger.context)
extra.update(kwargs)
extra = {k: v for k, v in extra.items() if v is not None}
super()._log(level, msg, args, exc_info, extra, stack_info)
super()._log(level, msg, args, exc_info, extra, stack_info, stacklevel=2)

def set_initial_ctx(self, **kwargs):
if not StructLogger.initial_context:
Expand Down

0 comments on commit ee3017d

Please sign in to comment.