Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Remove JobResult Retry Logging (#3439)
Browse files Browse the repository at this point in the history
* Replace JobResult error with warning.

* Make log statement.

* Leaving exception.
  • Loading branch information
nharper285 authored Aug 21, 2023
1 parent ea4a1ab commit 6d8be1a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ApiService/ApiService/onefuzzlib/JobResultOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ private async Async.Task<bool> TryUpdate(Job job, JobResultType resultType, Dict

var r = await Insert(jobResult);
if (!r.IsOk) {
_logTracer.AddHttpStatus(r.ErrorV);
_logTracer.LogError("failed to insert job result {JobId}", jobResult.JobId);
throw new InvalidOperationException($"failed to insert job result {jobResult.JobId}");
}
_logTracer.LogInformation("created job result {JobId}", jobResult.JobId);
Expand All @@ -88,8 +86,6 @@ private async Async.Task<bool> TryUpdate(Job job, JobResultType resultType, Dict

var r = await Update(jobResult);
if (!r.IsOk) {
_logTracer.AddHttpStatus(r.ErrorV);
_logTracer.LogError("failed to update job result {JobId}", jobResult.JobId);
throw new InvalidOperationException($"failed to insert job result {jobResult.JobId}");
}
_logTracer.LogInformation("updated job result {JobId}", jobResult.JobId);
Expand Down

0 comments on commit 6d8be1a

Please sign in to comment.