Skip to content

Commit

Permalink
Updated log statements to use structured logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Sep 27, 2024
1 parent 562db60 commit b08ce12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Foundatio.TestHarness/Queue/QueueTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ public virtual async Task CanUseQueueOptionsAsync()
{
ShouldListenTo = s => s.Name == "Foundatio",
Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllDataAndRecorded,
ActivityStarted = activity => _logger.LogInformation("Start: " + activity.DisplayName),
ActivityStopped = activity => _logger.LogInformation("Stop: " + activity.DisplayName)
ActivityStarted = activity => _logger.LogInformation("Start: {DisplayName}", activity.DisplayName),
ActivityStopped = activity => _logger.LogInformation("Stop: {DisplayName}", activity.DisplayName)
};

Activity.Current = new Activity("Parent");
Expand Down

0 comments on commit b08ce12

Please sign in to comment.