Print non-log errors (e.g. log list download failure) to stderr

These are important and should not happen very often.
This commit is contained in:
Andrew Ayer 2025-06-29 17:35:00 -04:00
parent bcefb76275
commit b9e9bd0471

View File

@ -262,6 +262,10 @@ func (s *FilesystemState) NotifyHealthCheckFailure(ctx context.Context, ctlog *l
} }
func (s *FilesystemState) NotifyError(ctx context.Context, ctlog *loglist.Log, notifyErr error) error { func (s *FilesystemState) NotifyError(ctx context.Context, ctlog *loglist.Log, notifyErr error) error {
if ctlog == nil {
log.Print(notifyErr)
}
var ( var (
now = time.Now() now = time.Now()
filePath = filepath.Join(s.errorDir(ctlog), now.Format(errorDateFormat)) filePath = filepath.Join(s.errorDir(ctlog), now.Format(errorDateFormat))