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

Commit

Permalink
Merge pull request #42 from LuccaSA/fix-auditlog
Browse files Browse the repository at this point in the history
fix auditlog name
  • Loading branch information
seguins authored Jun 8, 2022
2 parents 0f61806 + 0433937 commit 01bd96b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TCC/TccController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ private void WriteAuditFile(Mode mode, OperationSummary op)
{
foreach (IEnumerable<StepResult> stepResults in op.OperationBlocks.Select(o => o.StepResults).Where(result => result.Any()))
{
var name = stepResults.FirstOrDefault(sr => string.IsNullOrEmpty(sr.Name))?.Name;
var name = stepResults.FirstOrDefault(sr => !string.IsNullOrEmpty(sr.Name))?.Name;
var logLevel = LogLevel.Information;
if (stepResults.Any(stepResult => stepResult.HasError))
{
Expand Down

0 comments on commit 01bd96b

Please sign in to comment.