Use TraceEvent::error

This commit is contained in:
Andrew Noyes 2020-10-16 16:55:09 -07:00
parent 9dec4bc46a
commit 70c1ac2131
1 changed files with 1 additions and 1 deletions

View File

@ -3906,7 +3906,7 @@ ACTOR Future<Void> storageServerTracker(
.suppressFor(1.0)
.detail("Primary", self->primary)
.detail("Server", server->id)
.detail("ErrorCode", e.code());
.error(e, /*includeCancelled*/ true);
if (e.code() != error_code_actor_cancelled && errorOut.canBeSet()) {
errorOut.sendError(e);
wait(delay(0)); // Check for cancellation, since errorOut.sendError(e) could delete self