From 678e8bddc8755d2f41cf12af554c12b64cc4bfb2 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Fri, 5 Feb 2016 07:47:42 -0800 Subject: [PATCH] Include log URI in error messages --- scanner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scanner.go b/scanner.go index 6fbdd43..b05ceae 100644 --- a/scanner.go +++ b/scanner.go @@ -163,10 +163,10 @@ func (s *Scanner) handleParseEntryError(err error, entryType ct.LogEntryType, in case x509.NonFatalErrors: s.entriesWithNonFatalErrors++ // We'll make a note, but continue. - s.Log(fmt.Sprintf("Non-fatal error in %+v at index %d: %s", entryType, index, err.Error())) + s.Log(fmt.Sprintf("%s: Non-fatal error in %+v at index %d: %s", s.LogUri, entryType, index, err.Error())) default: s.unparsableEntries++ - s.Warn(fmt.Sprintf("Failed to parse in %+v at index %d : %s", entryType, index, err.Error())) + s.Warn(fmt.Sprintf("%s: Failed to parse in %+v at index %d : %s", s.LogUri, entryType, index, err.Error())) return err } return nil