Skip to content

Commit

Permalink
Dont log handled exception as error with backtrace
Browse files Browse the repository at this point in the history
  • Loading branch information
spuun committed Oct 2, 2024
1 parent ddf5871 commit c6cf1a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lavinmq/shovel/shovel.cr
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,13 @@ module LavinMQ
if ex.message.to_s.starts_with?("404")
break
end
Log.error(exception: ex) { ex.message }
Log.warn { ex.message }
@error = ex.message
exponential_reconnect_delay
rescue ex
break if terminated?
@state = State::Error
Log.error(exception: ex) { ex.message }
Log.warn { ex.message }
@error = ex.message
exponential_reconnect_delay
end
Expand Down

0 comments on commit c6cf1a9

Please sign in to comment.