Skip to content

Commit

Permalink
add a source
Browse files Browse the repository at this point in the history
  • Loading branch information
beauraF committed Oct 16, 2024
1 parent 3c2bd1a commit fd8fd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/log_subscriber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def mode_from(options)
end

def log_exception(name, e)
ActiveSupport.error_reporter.report(e)
ActiveSupport.error_reporter.report(e, source: name)

if logger
logger.error "Could not log #{name.inspect} event. #{e.class}: #{e.message} #{e.backtrace}"
Expand Down

0 comments on commit fd8fd77

Please sign in to comment.