Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Log an exception with the backtrace cleaned as per the 'Application Trace'
# in the development mode browser exception view.
logger.error(
"some_tag: exception = %s: %s" % [
exception.inspect,
Rails.backtrace_cleaner.clean(exception.backtrace)
]
)
@kaleworsley

This comment has been minimized.

Copy link

@kaleworsley kaleworsley commented Jan 28, 2015

Nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment