Ticket #50 (closed bug: fixed)

Opened 10 years ago

Last modified 10 years ago

[log] inferred caller is wrong

Reported by: sdt Owned by: apoirier
Priority: major Component: uncategorized
Version: 0.1.0 Keywords: log, formatter, caller


When using the debug, info, etc. functions from the nagare.log module (SVN r223), the inferred caller of log records is these functions themselves.

This means the %(filename)s, %(funcName)s, %(module)s formatter arguments do not resolve to the correct source. For instance %(module)s resolves to 'nagare.log'.

Logger.findCaller rewinds the stack until it finds the standard logging module (itself) using _srcfile, which is only used for that purpose. Nagare may hijack it for the formatting functions to work correctly.

Change History

comment:1 Changed 10 years ago by apoirier

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.