Skip to content

Commit

Permalink
Updated logs.
Browse files Browse the repository at this point in the history
Signed-off-by: André Silva <[email protected]>
  • Loading branch information
askpt committed Mar 28, 2024
1 parent fba7e84 commit fa7b425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpenFeature/OpenFeatureClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ private async Task TriggerErrorHooks<T>(IReadOnlyList<Hook> hooks, HookContext<T
}
catch (Exception e)
{
this._logger.LogError(e, "Error while executing Error hook {0}", hook.GetType().Name);
this._logger.LogError(e, "Error while executing Error hook {HookName}", hook.GetType().Name);

Check warning on line 320 in src/OpenFeature/OpenFeatureClient.cs

View check run for this annotation

Codecov / codecov/patch

src/OpenFeature/OpenFeatureClient.cs#L320

Added line #L320 was not covered by tests
}
}
}
Expand All @@ -333,7 +333,7 @@ private async Task TriggerFinallyHooks<T>(IReadOnlyList<Hook> hooks, HookContext
}
catch (Exception e)
{
this._logger.LogError(e, "Error while executing Finally hook {0}", hook.GetType().Name);
this._logger.LogError(e, "Error while executing Finally hook {HookName}", hook.GetType().Name);
}
}
}
Expand Down

0 comments on commit fa7b425

Please sign in to comment.