From 1b17c257473c4417977ac3e0801122c17eb6370c Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Fri, 5 Feb 2016 07:45:49 -0800 Subject: [PATCH] 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. --- scanner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanner.go b/scanner.go index 3d78419..6fbdd43 100644 --- a/scanner.go +++ b/scanner.go @@ -163,7 +163,7 @@ func (s *Scanner) handleParseEntryError(err error, entryType ct.LogEntryType, in case x509.NonFatalErrors: s.entriesWithNonFatalErrors++ // 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: s.unparsableEntries++ s.Warn(fmt.Sprintf("Failed to parse in %+v at index %d : %s", entryType, index, err.Error()))