Skip to content

Commit

Permalink
Use send instead
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylareopelle committed Mar 15, 2023
1 parent 901fd21 commit 642d0fd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/new_relic/agent/transaction/abstract_segment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,9 @@ def add_child_timing(segment)

def force_finish
finish
message = "Segment: #{name} was unfinished at " \
NewRelic::Agent.logger.send(transaction.async? ? :debug : :warn, "Segment: #{name} was unfinished at " \
"the end of transaction. Timing information for this segment's " \
"parent #{parent&.name} in #{transaction.best_name} may be inaccurate."
transaction.async? ? NewRelic::Agent.logger.debug(message) : NewRelic::Agent.logger.warn(message)
"parent #{parent&.name} in #{transaction.best_name} may be inaccurate.")
end

def run_complete_callbacks
Expand Down

0 comments on commit 642d0fd

Please sign in to comment.