Skip to content

Commit

Permalink
Merge pull request #148 from sebastienros/patch-1
Browse files Browse the repository at this point in the history
Adapting log level when files are not found
  • Loading branch information
JimBobSquarePants authored Mar 23, 2021
2 parents 7ab73bb + 9908d55 commit d055952
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ImageSharp.Web/Middleware/LoggerExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ internal static class LoggerExtensions
static LoggerExtensions()
{
LogProcessingErrorAction = LoggerMessage.Define<string>(
logLevel: LogLevel.Error,
logLevel: LogLevel.Debug,
eventId: 1,
formatString: "The image '{Uri}' could not be processed");

LogResolveFailedAction = LoggerMessage.Define<string>(
logLevel: LogLevel.Error,
logLevel: LogLevel.Debug,
eventId: 2,
formatString: "The image '{Uri}' could not be resolved");

Expand Down Expand Up @@ -100,4 +100,4 @@ public static void LogImagePreconditionFailed(this ILogger logger, string uri)
LogPreconditionFailedAction(logger, uri, null);
}
}
}
}

0 comments on commit d055952

Please sign in to comment.