Decrease log severity of non-fatal parse errors
These errors are for things like unhandled critical extensions. The cert is still processed, so it's not such a bad thing.
This commit is contained in:
parent
3f596730a0
commit
1b17c25747
|
@ -163,7 +163,7 @@ func (s *Scanner) handleParseEntryError(err error, entryType ct.LogEntryType, in
|
||||||
case x509.NonFatalErrors:
|
case x509.NonFatalErrors:
|
||||||
s.entriesWithNonFatalErrors++
|
s.entriesWithNonFatalErrors++
|
||||||
// We'll make a note, but continue.
|
// We'll make a note, but continue.
|
||||||
s.Warn(fmt.Sprintf("Non-fatal error in %+v at index %d: %s", entryType, index, err.Error()))
|
s.Log(fmt.Sprintf("Non-fatal error in %+v at index %d: %s", entryType, index, err.Error()))
|
||||||
default:
|
default:
|
||||||
s.unparsableEntries++
|
s.unparsableEntries++
|
||||||
s.Warn(fmt.Sprintf("Failed to parse in %+v at index %d : %s", entryType, index, err.Error()))
|
s.Warn(fmt.Sprintf("Failed to parse in %+v at index %d : %s", entryType, index, err.Error()))
|
||||||
|
|
Loading…
Reference in New Issue