diff --git a/src/Foundatio/Utility/ScheduledTimer.cs b/src/Foundatio/Utility/ScheduledTimer.cs index 9ed16820..6b480492 100644 --- a/src/Foundatio/Utility/ScheduledTimer.cs +++ b/src/Foundatio/Utility/ScheduledTimer.cs @@ -49,7 +49,7 @@ public void ScheduleNext(DateTime? utcDate = null) if (_next > utcNow && utcDate > _next) { if (isTraceLogLevelEnabled) - _logger.LogTrace("Ignoring because already scheduled for earlier time: {PreviousTicks} Next: {NextTicks}", utcDate.Value.Ticks, _next.Ticks); + _logger.LogTrace("Ignoring because already scheduled for earlier time: {PreviousNextRun:O} Next: {NextRun:O}", utcDate.Value, _next); return; } @@ -66,7 +66,7 @@ public void ScheduleNext(DateTime? utcDate = null) if (_next > utcNow && utcDate > _next) { if (isTraceLogLevelEnabled) - _logger.LogTrace("Ignoring because already scheduled for earlier time: {PreviousTicks} Next: {NextTicks}", utcDate.Value.Ticks, _next.Ticks); + _logger.LogTrace("Ignoring because already scheduled for earlier time: {PreviousNextRun:O} Next: {NextRun:O}", utcDate.Value, _next); return; }