mirror of
https://github.com/SSLMate/certspotter.git
synced 2025-12-17 04:24:19 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user