Change log from error to warn
This commit is contained in:
parent
8ca6d8352d
commit
b8f71fbc46
1 changed files with 1 additions and 1 deletions
|
|
@ -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.`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue