Skip to content

Commit ab5fa8f

Browse files
fix: linter
1 parent 41d7e07 commit ab5fa8f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

enterprise/coderd/prebuilds/reconcile.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ func (c *StoreReconciler) RunLoop(ctx context.Context) {
9494
}
9595

9696
func (c *StoreReconciler) Stop(ctx context.Context, cause error) {
97-
c.logger.Warn(context.Background(), "stopping reconciler", slog.F("cause", cause))
97+
if cause != nil {
98+
c.logger.Error(context.Background(), "stopping reconciler due to an error", slog.F("cause", cause))
99+
} else {
100+
c.logger.Info(context.Background(), "gracefully stopping reconciler")
101+
}
98102

99103
if c.isStopped() {
100104
return

0 commit comments

Comments
 (0)