From 63a0b56bf3068f7a698b66d06304dc9689fec18d Mon Sep 17 00:00:00 2001 From: austins Date: Tue, 29 Oct 2024 14:04:01 -0700 Subject: [PATCH] Update logging msg --- src/DiscordTranslationBot/Mediator/NotificationPublisher.cs | 2 +- .../Mediator/NotificationPublisherTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DiscordTranslationBot/Mediator/NotificationPublisher.cs b/src/DiscordTranslationBot/Mediator/NotificationPublisher.cs index a7ee8da..4bb8073 100644 --- a/src/DiscordTranslationBot/Mediator/NotificationPublisher.cs +++ b/src/DiscordTranslationBot/Mediator/NotificationPublisher.cs @@ -41,7 +41,7 @@ private sealed partial class Log(ILogger logger) [LoggerMessage( Level = LogLevel.Information, - Message = "Executed notification handlers for '{notificationName}'. Elapsed time: {elapsedMs}ms.")] + Message = "Executed notification handler(s) for '{notificationName}'. Elapsed time: {elapsedMs}ms.")] public partial void NotificationHandlersExecuted(string notificationName, double elapsedMs); } } diff --git a/tests/DiscordTranslationBot.Tests.Unit/Mediator/NotificationPublisherTests.cs b/tests/DiscordTranslationBot.Tests.Unit/Mediator/NotificationPublisherTests.cs index 26ef596..c657088 100644 --- a/tests/DiscordTranslationBot.Tests.Unit/Mediator/NotificationPublisherTests.cs +++ b/tests/DiscordTranslationBot.Tests.Unit/Mediator/NotificationPublisherTests.cs @@ -37,7 +37,7 @@ public async Task Publish_ValidNotification_Success() handlersExecutedLog .Message .Should() - .StartWith($"Executed notification handlers for '{notificationName}'. Elapsed time:"); + .StartWith($"Executed notification handler(s) for '{notificationName}'. Elapsed time:"); } [Fact]