From 57003dc01e390fa3c9f9d5261748f93274ba237b Mon Sep 17 00:00:00 2001 From: Freya Arbjerg Date: Tue, 14 Nov 2023 14:15:43 +0100 Subject: [PATCH] Add logging of Koe gateway errors (#982) --- .../src/main/java/lavalink/server/io/SocketContext.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LavalinkServer/src/main/java/lavalink/server/io/SocketContext.kt b/LavalinkServer/src/main/java/lavalink/server/io/SocketContext.kt index 2f0f5a0d7..874e0d2e8 100644 --- a/LavalinkServer/src/main/java/lavalink/server/io/SocketContext.kt +++ b/LavalinkServer/src/main/java/lavalink/server/io/SocketContext.kt @@ -232,5 +232,9 @@ class SocketContext( override fun gatewayReady(target: InetSocketAddress?, ssrc: Int) { SocketServer.sendPlayerUpdate(this@SocketContext, player) } + + override fun gatewayError(cause: Throwable) { + log.error("Koe encountered a voice gateway exception for guild ${player.guildId}", cause) + } } }