Skip to content

Commit 96caa18

Browse files
refactor: improve logging
1 parent 2b7119a commit 96caa18

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

coderd/prebuilds/preset_snapshot.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ func (p PresetSnapshot) CalculateDesiredInstances(at time.Time) int32 {
189189
continue
190190
}
191191
if matches {
192+
p.logger.Debug(context.Background(), "current time matched cron expression",
193+
slog.F("preset_id", p.Preset.ID),
194+
slog.F("current_time", at.String()),
195+
slog.F("cron_expression", cronExprWithTimezone))
196+
192197
return schedule.DesiredInstances
193198
}
194199
}

0 commit comments

Comments
 (0)