satellite/audit: change wording of audit worker error log

"audit failed" is already used when a node fails an audit. That makes
searching for this higher level audit worker error more difficult.
Additionally, the presence of errors from the audit worker doesn't
necessarily mean the audit failed. Reword the error message to
"error(s) during audit"

Change-Id: I0aab12c73c18d4bd962c5d8ac8a17cabcec022e6
This commit is contained in:
Cameron Ayer 2021-08-16 15:42:56 -04:00 committed by Cameron Ayer
parent e452f85163
commit 70296c5050

View File

@ -102,7 +102,7 @@ func (worker *Worker) process(ctx context.Context) (err error) {
worker.limiter.Go(ctx, func() {
err := worker.work(ctx, segment)
if err != nil {
worker.log.Error("audit failed",
worker.log.Error("error(s) during audit",
zap.String("Segment StreamID", segment.StreamID.String()),
zap.Uint64("Segment Position", segment.Position.Encode()),
zap.Error(err))