Fixes for logger to properly introspect lines in exceptions