Skip to content

Commit

Permalink
Dont log handled exception as error with backtrace (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
spuun authored Oct 3, 2024
1 parent ddf5871 commit 3bb0dd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ shards:

amqp-client:
git: https://github.com/cloudamqp/amqp-client.cr.git
version: 1.2.6
version: 1.2.7

lz4:
git: https://github.com/84codes/lz4.cr.git
Expand Down
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 3bb0dd3

Please sign in to comment.