diff --git a/monitor/daemon.go b/monitor/daemon.go index c2bc152..b53cb55 100644 --- a/monitor/daemon.go +++ b/monitor/daemon.go @@ -44,8 +44,6 @@ type daemon struct { tasks map[LogID]task logsLoadedAt time.Time logListToken *loglist.ModificationToken - logListError string - logListErrorAt time.Time } func (daemon *daemon) healthCheck(ctx context.Context) error { @@ -61,8 +59,6 @@ func (daemon *daemon) healthCheck(ctx context.Context) error { info := &StaleLogListInfo{ Source: daemon.config.LogListSource, LastSuccess: daemon.logsLoadedAt, - LastError: daemon.logListError, - LastErrorTime: daemon.logListErrorAt, RecentErrors: errors, ErrorsDir: errorsDir, } @@ -153,8 +149,6 @@ func (daemon *daemon) run(ctx context.Context) error { return ctx.Err() case <-reloadLogListTicker.C: if err := daemon.loadLogList(ctx); err != nil { - daemon.logListError = err.Error() - daemon.logListErrorAt = time.Now() recordError(ctx, daemon.config, nil, fmt.Errorf("error reloading log list (will try again later): %w", err)) } reloadLogListTicker.Reset(reloadLogListInterval()) diff --git a/monitor/healthcheck.go b/monitor/healthcheck.go index 5625fe3..c7772de 100644 --- a/monitor/healthcheck.go +++ b/monitor/healthcheck.go @@ -114,8 +114,6 @@ type BacklogInfo struct { type StaleLogListInfo struct { Source string LastSuccess time.Time - LastError string - LastErrorTime time.Time RecentErrors string ErrorsDir string }