#172 debug call_location is using wrong stack frame
Closed: Fixed None Opened 3 years ago by jdennis.

In ipsilon/util/log.py the function call_location() is returning the wrong information. The debug output is supposed to show the file and line number where the debug message was emitted from. It appears one call level got added somehow (e.g. now there is one extra stack frame).

    frame = inspect.stack()[2]

needs to be changed to

    frame = inspect.stack()[3]

This is important to fix because when debugging it's really helpful to match a debug message to the code location that emitted it.


Fields changed

milestone: => 1.2

Fields changed

owner: => jdennis
status: new => assigned

Fields changed

patch_available: 0 => 1

closing

commit 39783cb

resolution: => fixed
status: assigned => closed

Metadata Update from @jdennis:
- Issue assigned to jdennis
- Issue set to the milestone: 1.2

2 years ago

Login to comment on this ticket.

Metadata