From cf446d9732025dce1ace98b013be4406244f7c5c Mon Sep 17 00:00:00 2001 From: Vladyslav Puzanov <102820106+Mehanari@users.noreply.github.com> Date: Mon, 29 Jul 2024 23:06:31 +0300 Subject: [PATCH] Switched logging level from debug to info. --- .../PlayerInitializationController.cs | 8 ++++---- .../NetworkManager/CancelGameResultRetranslator.cs | 2 +- .../NetworkManager/CancelGameRetranslator.cs | 2 +- .../MessageHandlers/CancelGameMessageHandler.cs | 2 +- .../MessageHandlers/CancelGameResultMessageHandler.cs | 2 +- .../NetworkManager/RequestGameRetranslator.cs | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/castledice-game-server/GameController/PlayerInitialization/PlayerInitializationController.cs b/castledice-game-server/GameController/PlayerInitialization/PlayerInitializationController.cs index 947c3ae..7cbce06 100644 --- a/castledice-game-server/GameController/PlayerInitialization/PlayerInitializationController.cs +++ b/castledice-game-server/GameController/PlayerInitialization/PlayerInitializationController.cs @@ -32,15 +32,15 @@ public async Task InitializePlayerAsync(string playerToken, ushort clientId) try { var playerId = await _idRetriever.RetrievePlayerIdAsync(playerToken); - _logger.Debug($"Initializing player with id {playerId} and client id {clientId}"); + _logger.Info($"Initializing player with id {playerId} and client id {clientId}"); if (_idsMap.PlayerHasClient(playerId)) { - _logger.Debug($"Player with id {playerId} already has a client id assigned. Disconnecting the old client."); + _logger.Info($"Player with id {playerId} already has a client id assigned. Disconnecting the old client."); _playerDisconnecter.DisconnectPlayerWithId(playerId); } _idsMap.SaveClientToPlayer(playerId, clientId); - _logger.Debug($"Player with id {playerId} successfully initialized with client id {clientId}"); - _logger.Debug($"Sending initialization result to client with id {clientId}"); + _logger.Info($"Player with id {playerId} successfully initialized with client id {clientId}"); + _logger.Info($"Sending initialization result to client with id {clientId}"); _playerInitializationResultDtoSender.SendInitializationResult(clientId, new PlayerInitializationResultDTO(true)); } catch (Exception e) diff --git a/castledice-game-server/NetworkManager/CancelGameResultRetranslator.cs b/castledice-game-server/NetworkManager/CancelGameResultRetranslator.cs index 871fcdc..54369d2 100644 --- a/castledice-game-server/NetworkManager/CancelGameResultRetranslator.cs +++ b/castledice-game-server/NetworkManager/CancelGameResultRetranslator.cs @@ -23,7 +23,7 @@ public void AcceptCancelGameResultDTO(CancelGameResultDTO dto) { var playerId = dto.PlayerId; var clientId = _idsMap.GetClientByPlayer(playerId); - _logger.Debug($"Retranslating cancel game result message to client id {clientId}"); + _logger.Info($"Retranslating cancel game result message to client id {clientId}"); var message = Message.Create(MessageSendMode.Reliable, (ushort)ServerToClientMessageType.CancelGame); message.AddCancelGameResultDTO(dto); _messageSender.Send(message, clientId); diff --git a/castledice-game-server/NetworkManager/CancelGameRetranslator.cs b/castledice-game-server/NetworkManager/CancelGameRetranslator.cs index 12ba249..5a23863 100644 --- a/castledice-game-server/NetworkManager/CancelGameRetranslator.cs +++ b/castledice-game-server/NetworkManager/CancelGameRetranslator.cs @@ -18,7 +18,7 @@ public CancelGameRetranslator(IMessageSender messageSender) public void AcceptCancelGameDTO(CancelGameDTO dto, ushort clientId) { - _logger.Debug($"Retranslating cancel game message for client with verification key: {dto.VerificationKey}"); + _logger.Info($"Retranslating cancel game message for client with verification key: {dto.VerificationKey}"); var message = Message.Create(MessageSendMode.Reliable, (ushort)ClientToServerMessageType.CancelGame); message.AddCancelGameDTO(dto); _messageSender.Send(message); diff --git a/castledice-game-server/NetworkManager/MessageHandlers/CancelGameMessageHandler.cs b/castledice-game-server/NetworkManager/MessageHandlers/CancelGameMessageHandler.cs index a995161..2845fb3 100644 --- a/castledice-game-server/NetworkManager/MessageHandlers/CancelGameMessageHandler.cs +++ b/castledice-game-server/NetworkManager/MessageHandlers/CancelGameMessageHandler.cs @@ -19,7 +19,7 @@ public static void SetAccepter(ICancelGameDTOAccepter dtoAccepter) [MessageHandler((ushort)ClientToServerMessageType.CancelGame)] private static void HandleCancelGameMessage(ushort fromClientId, Message message) { - _logger.Debug($"Handling cancel game message for client id {fromClientId}"); + _logger.Info($"Handling cancel game message for client id {fromClientId}"); _dtoAccepter.AcceptCancelGameDTO(message.GetCancelGameDTO(), fromClientId); } } \ No newline at end of file diff --git a/castledice-game-server/NetworkManager/MessageHandlers/CancelGameResultMessageHandler.cs b/castledice-game-server/NetworkManager/MessageHandlers/CancelGameResultMessageHandler.cs index 6a17848..1a86988 100644 --- a/castledice-game-server/NetworkManager/MessageHandlers/CancelGameResultMessageHandler.cs +++ b/castledice-game-server/NetworkManager/MessageHandlers/CancelGameResultMessageHandler.cs @@ -19,7 +19,7 @@ public static void SetAccepter(ICancelGameResultDTOAccepter dtoAccepter) [MessageHandler((ushort)ServerToClientMessageType.CancelGame)] private static void HandleCancelGameResultMessage(Message message) { - _logger.Debug("Handling cancel game result message"); + _logger.Info("Handling cancel game result message"); _dtoAccepter.AcceptCancelGameResultDTO(message.GetCancelGameResultDTO()); } } \ No newline at end of file diff --git a/castledice-game-server/NetworkManager/RequestGameRetranslator.cs b/castledice-game-server/NetworkManager/RequestGameRetranslator.cs index 429a419..b300414 100644 --- a/castledice-game-server/NetworkManager/RequestGameRetranslator.cs +++ b/castledice-game-server/NetworkManager/RequestGameRetranslator.cs @@ -18,7 +18,7 @@ public RequestGameRetranslator(IMessageSender messageSender) public void AcceptRequestGameDTO(RequestGameDTO requestGameDTO, ushort clientId) { - _logger.Debug($"Retranslating request game message for client with verification key: {requestGameDTO.VerificationKey}"); + _logger.Info($"Retranslating request game message for client with verification key: {requestGameDTO.VerificationKey}"); var message = Message.Create(MessageSendMode.Reliable, (ushort)ClientToServerMessageType.RequestGame); message.AddRequestGameDTO(requestGameDTO); _messageSender.Send(message);