Include log URI in error messages
This commit is contained in:
parent
1b17c25747
commit
678e8bddc8
|
@ -163,10 +163,10 @@ 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.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:
|
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("%s: Failed to parse in %+v at index %d : %s", s.LogUri, entryType, index, err.Error()))
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue