Skip to content

Commit

Permalink
Fix: Undefined logger in grape instruments (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
lancetarn authored Oct 28, 2024
1 parent b11db6e commit 49c798b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.markdown
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Unreleased
- Fix undeclared logger in grape instruments (#510)

# 5.4.0
* Add support for GoodJob (#506)
Expand Down
2 changes: 1 addition & 1 deletion lib/scout_apm/instruments/grape.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def run_with_scout_instruments(*args)
self.options[:path].first,
].compact.map{ |n| n.to_s }.join("/")
rescue => e
logger.info("Error getting Grape Endpoint Name. Error: #{e.message}. Options: #{self.options.inspect}")
ScoutApm::Agent.instance.context.logger.info("Error getting Grape Endpoint Name. Error: #{e.message}. Options: #{self.options.inspect}")
name = "Grape/Unknown"
end

Expand Down

0 comments on commit 49c798b

Please sign in to comment.