Skip to content

Commit

Permalink
Switched logging level from debug to info.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehanari committed Jul 29, 2024
1 parent 10565af commit cf446d9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cf446d9

Please sign in to comment.