mirror of
https://github.com/SSLMate/certspotter.git
synced 2025-07-03 10:47:17 +02: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:
parent
bcefb76275
commit
b9e9bd0471
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user