Skip to content

Commit 0a746a9

Browse files
committed
Changed log level for a message
1 parent 46a9080 commit 0a746a9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Services/Infrastructure/OJS.Services.Infrastructure/Constants/LoggerMessageDefinitions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,19 @@ public static partial class LoggerMessageDefinitions
8686
[LoggerMessage(302, LogLevel.Information, "Truncated {PercentageOfMessageContentTruncated:F2}% of a message's content to comply with token limits for problem #{ProblemId}.")]
8787
public static partial void LogPercentageOfMessageContentTruncated(this ILogger logger, double percentageOfMessageContentTruncated, int problemId);
8888

89-
[LoggerMessage(303, LogLevel.Warning, "The downloaded file from {Link} for problem #{ProblemId} in contest #{ContestId} is not in the expected format.")]
89+
[LoggerMessage(303, LogLevel.Error, "The downloaded file from {Link} for problem #{ProblemId} in contest #{ContestId} is not in the expected format.", SkipEnabledCheck = true)]
9090
public static partial void LogInvalidDocumentFormat(this ILogger logger, int problemId, int contestId, string link);
9191

92-
[LoggerMessage(304, LogLevel.Warning, "The downloaded file from {Link} for problem #{ProblemId} in contest #{ContestId} is either empty or does not exist.")]
92+
[LoggerMessage(304, LogLevel.Error, "The downloaded file from {Link} for problem #{ProblemId} in contest #{ContestId} is either empty or does not exist.", SkipEnabledCheck = true)]
9393
public static partial void LogFileNotFoundOrEmpty(this ILogger logger, int problemId, int contestId, string link);
9494

95-
[LoggerMessage(305, LogLevel.Error, "Failed to download the file from {Link} for problem #{ProblemId} in contest #{ContestId} with status code {StatusCode} and response message: {ResponseMessage}.")]
95+
[LoggerMessage(305, LogLevel.Error, "Failed to download the file from {Link} for problem #{ProblemId} in contest #{ContestId} with status code {StatusCode} and response message: {ResponseMessage}.", SkipEnabledCheck = true)]
9696
public static partial void LogHttpRequestFailure(this ILogger logger, int problemId, int contestId, HttpStatusCode statusCode, string link, string? responseMessage);
9797

98-
[LoggerMessage(306, LogLevel.Error, "Failed to download the file from {Link} for problem #{ProblemId} in contest #{ContestId}.")]
98+
[LoggerMessage(306, LogLevel.Error, "Failed to download the file from {Link} for problem #{ProblemId} in contest #{ContestId}.", SkipEnabledCheck = true)]
9999
public static partial void LogResourceDownloadFailure(this ILogger logger, int problemId, int contestId, string link, Exception ex);
100100

101-
[LoggerMessage(307, LogLevel.Error, "Failed to parse the content of the downloaded file for problem #{ProblemId} in contest #{ContestId}.")]
101+
[LoggerMessage(307, LogLevel.Error, "Failed to parse the content of the downloaded file for problem #{ProblemId} in contest #{ContestId}.", SkipEnabledCheck = true)]
102102
public static partial void LogFileParsingFailure(this ILogger logger, int problemId, int contestId);
103103

104104
[LoggerMessage(308, LogLevel.Error, "Problem description resource not found for problem #{ProblemId} in contest #{ContestId}. Verify that the problem or the first problem in the contest has a valid description resource.", SkipEnabledCheck = true)]

0 commit comments

Comments
 (0)