From 0ae90c5e0072dfda7bad98ed964e625f3344b54e Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Sat, 4 May 2024 19:36:52 +0200 Subject: [PATCH] Log at INFO level when shard connection is up 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. --- lib/nostrum/shard/session.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nostrum/shard/session.ex b/lib/nostrum/shard/session.ex index aafca3ff5..2b8cc1e72 100644 --- a/lib/nostrum/shard/session.ex +++ b/lib/nostrum/shard/session.ex @@ -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)