From b8f71fbc46d582bde2ce8bead6ff724b58803bbf Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Tue, 20 Oct 2020 22:43:05 -0600 Subject: [PATCH] Change log from error to warn --- src/events/KickPlayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/KickPlayer.ts b/src/events/KickPlayer.ts index 8b840ba..1d1c89f 100644 --- a/src/events/KickPlayer.ts +++ b/src/events/KickPlayer.ts @@ -37,7 +37,7 @@ export const KickPlayer = (io: Server, socket: Socket, data: KickPlayer) => { // Ensure the user can be kicked during the state if (game.status !== `lobby`) { - log.error(`Cannot kick a player from the game when not in the lobby. (state=${game.status})`); + log.warn(`Cannot kick a player from the game when not in the lobby. (state=${game.status})`); socket.emit(`PlayerKicked`, { success: false, message: `Cannot kick a player when the game is in progress.`,