Skip to content

Commit

Permalink
add method/path/params/retries to error message so it's easier to fin…
Browse files Browse the repository at this point in the history
…d in cloudwatch
  • Loading branch information
DGaffney committed Jan 31, 2024
1 parent 353e0f7 commit 1e942a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/alegre_v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def request(method, path, params, retries=3)
sleep 1
self.request(method, path, params, retries - 1)
end
Rails.logger.error("[Alegre Bot] Alegre error: #{e.message}")
Rails.logger.error("[Alegre Bot] Alegre error: (#{method}, #{path}, #{params.inspect}, #{retries}), #{e.inspect} #{e.message}")
{ 'type' => 'error', 'data' => { 'message' => e.message } }
end
end
Expand Down

0 comments on commit 1e942a0

Please sign in to comment.