diff --git a/monitor/fsstate.go b/monitor/fsstate.go index 3ab0d2c..5e7125d 100644 --- a/monitor/fsstate.go +++ b/monitor/fsstate.go @@ -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 { + if ctlog == nil { + log.Print(notifyErr) + } + var ( now = time.Now() filePath = filepath.Join(s.errorDir(ctlog), now.Format(errorDateFormat))