Skip to content

Commit 280cb51

Browse files
committed
log
1 parent 0720922 commit 280cb51

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/ScheduledTasks/Entity/Schedule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public void UpdateSchedule(TaskEntityContext context, ScheduleUpdateOptions sche
8383
if (updatedScheduleConfigFields.Count == 0)
8484
{
8585
// no need to interrupt and update current schedule run as there is no change in the schedule config
86-
this.logger.ScheduleOperationWarning(this.State.ScheduleConfiguration.ScheduleId, nameof(this.UpdateSchedule), "Schedule configuration is up to date.");
86+
this.logger.ScheduleOperationDebug(this.State.ScheduleConfiguration.ScheduleId, nameof(this.UpdateSchedule), "Schedule configuration is up to date.");
8787
return;
8888
}
8989

src/ScheduledTasks/Logging/Logs.Entity.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,18 @@ static partial class Logs
4949
[LoggerMessage(EventId = 111, Level = LogLevel.Information, Message = "Schedule '{scheduleId}' is deleted")]
5050
public static partial void DeletedSchedule(this ILogger logger, string scheduleId);
5151

52-
[LoggerMessage(EventId = 112, Level = LogLevel.Information, Message = "Schedule '{scheduleId}' operation '{operationName}' info: {infoMessage}")]
52+
[LoggerMessage(EventId = 112, Level = LogLevel.Debug, Message = "Schedule '{scheduleId}' operation '{operationName}' debug: {debugMessage}")]
53+
public static partial void ScheduleOperationDebug(this ILogger logger, string scheduleId, string operationName, string debugMessage);
54+
55+
[LoggerMessage(EventId = 113, Level = LogLevel.Information, Message = "Schedule '{scheduleId}' operation '{operationName}' info: {infoMessage}")]
5356
public static partial void ScheduleOperationInfo(this ILogger logger, string scheduleId, string operationName, string infoMessage);
5457

55-
[LoggerMessage(EventId = 113, Level = LogLevel.Warning, Message = "Schedule '{scheduleId}' operation '{operationName}' warning: {warningMessage}")]
58+
[LoggerMessage(EventId = 114, Level = LogLevel.Warning, Message = "Schedule '{scheduleId}' operation '{operationName}' warning: {warningMessage}")]
5659
public static partial void ScheduleOperationWarning(this ILogger logger, string scheduleId, string operationName, string warningMessage);
5760

58-
[LoggerMessage(EventId = 114, Level = LogLevel.Error, Message = "Operation '{operationName}' failed for schedule '{scheduleId}': {errorMessage}")]
61+
[LoggerMessage(EventId = 115, Level = LogLevel.Error, Message = "Operation '{operationName}' failed for schedule '{scheduleId}': {errorMessage}")]
5962
public static partial void ScheduleOperationError(this ILogger logger, string scheduleId, string operationName, string errorMessage, Exception? exception = null);
6063

61-
[LoggerMessage(EventId = 115, Level = LogLevel.Information, Message = "Schedule '{scheduleId}' run cancelled with execution token '{executionToken}'")]
64+
[LoggerMessage(EventId = 116, Level = LogLevel.Information, Message = "Schedule '{scheduleId}' run cancelled with execution token '{executionToken}'")]
6265
public static partial void ScheduleRunCancelled(this ILogger logger, string scheduleId, string executionToken);
6366
}

0 commit comments

Comments
 (0)