Skip to content

Commit

Permalink
Update log level to warning for unsuccessful proxying (#2044)
Browse files Browse the repository at this point in the history
  • Loading branch information
kheardCB authored Feb 21, 2023
1 parent c243953 commit 76e4d14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ReverseProxy/Forwarder/HttpForwarder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ private static class Log
"Proxying to {targetUrl} {version} {versionPolicy} {isStreaming}");

private static readonly Action<ILogger, ForwarderError, string, Exception> _proxyError = LoggerMessage.Define<ForwarderError, string>(
LogLevel.Information,
LogLevel.Warning,
EventIds.ForwardingError,
"{error}: {message}");

Expand All @@ -1010,7 +1010,7 @@ private static class Log
"Unable to proxy the WebSocket using HTTP/2, server does not support HTTP/2. Retrying with HTTP/1.1. Disable HTTP/2 negotiation for improved performance.");

private static readonly Action<ILogger, string?, Exception?> _invalidKeyHeader = LoggerMessage.Define<string?>(
LogLevel.Information,
LogLevel.Warning,
EventIds.InvalidSecWebSocketKeyHeader,
"Invalid Sec-WebSocket-Key header: '{key}'.");

Expand Down

0 comments on commit 76e4d14

Please sign in to comment.