diff options
Diffstat (limited to 'app/app.go')
-rw-r--r-- | app/app.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,6 +3,7 @@ package app import ( "bytes" "context" + "log/slog" "os" "text/template" "time" @@ -44,7 +45,7 @@ func (a *App) Run(ctx context.Context) error { return nil case <-ticker.C: if err := a.iteration(); err != nil { - return err + slog.ErrorContext(ctx, "failed iteration", slog.Any("error", err)) } } } |