Skip to content

Commit

Permalink
Log at INFO level when shard connection is up
Browse files Browse the repository at this point in the history
Make logs such as this:

    [info] Asked to reconnect with session SESSION
    [info] Re-established websocket connection
    [info] Resuming on shard session SESSION
    [info] Asked to reconnect with session SESSION
    [info] Re-established websocket connection
    [info] Resuming on shard session SESSION

Less confusing by ensuring the user knows we successfully resumed.
  • Loading branch information
jchristgit committed May 4, 2024
1 parent bb353c4 commit 0ae90c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nostrum/shard/session.ex
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ defmodule Nostrum.Shard.Session do
Logger.debug("Consumer up, we are ready to rumble")

_consumers ->
Logger.debug("Shard connection up")
Logger.info("Shard connection armed and ready")
end

:ok = ConsumerGroup.demonitor(reference)
Expand Down

0 comments on commit 0ae90c5

Please # to comment.