mirror of
https://github.com/SSLMate/certspotter.git
synced 2025-12-17 12:34:18 +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 {
|
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))
|
||||||
|
|||||||
Reference in New Issue
Block a user