Skip to content

Commit

Permalink
Merge pull request #9280 from drewnoakes/fix-9279-inc-build-failure-l…
Browse files Browse the repository at this point in the history
…ogging-utc-times

Ensure warning message uses local time
  • Loading branch information
drewnoakes authored Oct 12, 2023
2 parents 7318cf3 + addd3c3 commit 890feba
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ public bool Fail(string reason, string resourceName, params object[] values)
});

// Remember the failure reason and description for use in IncrementalBuildFailureDetector.
// First, ensure times are converted to local time (in case logging is not enabled).
ConvertToLocalTimes(values);
FailureReason = reason;
FailureDescription = string.Format(GetResourceString(resourceName), values);

Expand Down

0 comments on commit 890feba

Please sign in to comment.