Skip to content

Commit

Permalink
refactor(events): [PPT-1390] improve debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
chillfox committed Jun 18, 2024
1 parent 83aa715 commit d17f3dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/events.cr
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,8 @@ class Events < Application

begin
event = client.get_event(user.email, id: event_id, calendar_id: cal_id)
rescue PlaceCalendar::Exception
rescue ex : PlaceCalendar::Exception
Log.debug { "upstream failed to find event #{event_id}, status: #{ex.http_status}, body: #{ex.http_body}" }
event = nil
end
raise Error::NotFound.new("failed to find event #{event_id} searching on #{cal_id} as #{user.email}") unless event
Expand Down

0 comments on commit d17f3dc

Please sign in to comment.