Skip to content

Commit

Permalink
chore: further log message changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpop-zengenti committed Sep 4, 2024
1 parent c95b5b1 commit 82b7bc9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ public async Task<RouteInfo> GetRouteForRequest(Uri originUri, Headers headers)
catch (RpcException e)
{
var logLevel = LogLevel.Error;
var logMessagePrefix = "GetRouteForRequest RpcException";
var logMessagePrefix = "RpcException in GetRouteForRequest";
if (e.StatusCode == StatusCode.NotFound)
{
logLevel = LogLevel.Information;
logMessagePrefix = "GetRouteForRequest could not resolve route";
logMessagePrefix = "No block/proxy returned by GetRouteForRequest";
}

if (e.Data.Contains(Constants.Exceptions.DataKeyForOriginalMessage))
Expand Down Expand Up @@ -155,7 +155,7 @@ public async Task<RouteInfo> GetRouteForRequest(Uri originUri, Headers headers)
{
_logger.LogError(
e,
"GetRouteForRequest Exception with message {Message} for path {Path} . Initial message: {InitialMessage}",
"Exception in GetRouteForRequest with message {Message} for path {Path} . Initial message: {InitialMessage}",
e.Message,
originPath,
e.Data[Constants.Exceptions.DataKeyForOriginalMessage]);
Expand Down

0 comments on commit 82b7bc9

Please sign in to comment.