Properly identify code location of logging message