Skip to content

Commit

Permalink
fix incorrect template logging
Browse files Browse the repository at this point in the history
  • Loading branch information
runeanielsen committed Aug 12, 2024
1 parent 8e13fee commit 6f2edb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OpenFTTH.APIGateway/Auth/WebSocketAuthService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ public async Task AuthenticateAsync(IWebSocketConnection connection, string subP
{
// In case the security token is expired, we do nothing.
// The `HttpContext.User` won't be set so the user won't be authorized.
_logger.LogDebug("ex", ex.Message);
_logger.LogDebug("{ExceptionMessage}", ex.Message);
}
catch (ArgumentException ex)
{
// This can happen if no token was sent with the request.
// This is not a critical error, we just do not log them in.
_logger.LogDebug("ex", ex.Message);
_logger.LogDebug("{ExceptionMessage}", ex.Message);
}
catch (Exception ex)
{
_logger.LogWarning("{Exception}", ex.Message);
_logger.LogWarning("{ExceptionMessage}", ex.Message);
}
}

Expand Down

0 comments on commit 6f2edb3

Please sign in to comment.