From 68cd5a0b1a28662f0231fb711aff2ebd5d2e09d6 Mon Sep 17 00:00:00 2001 From: Ruberoid Date: Tue, 22 Jul 2025 00:10:11 +0300 Subject: [PATCH] Log messages translated into english and some punctuation fixes. --- .../TextSubscriptions/EventHandlers/MessageReceivedHandler.cs | 4 ++-- .../TextSubscriptions/Services/TextSubscriptionsService.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Nocr.TextMatcher.AppServices/TextSubscriptions/EventHandlers/MessageReceivedHandler.cs b/src/Nocr.TextMatcher.AppServices/TextSubscriptions/EventHandlers/MessageReceivedHandler.cs index 4b6a8fa..d17bc69 100644 --- a/src/Nocr.TextMatcher.AppServices/TextSubscriptions/EventHandlers/MessageReceivedHandler.cs +++ b/src/Nocr.TextMatcher.AppServices/TextSubscriptions/EventHandlers/MessageReceivedHandler.cs @@ -28,7 +28,7 @@ public sealed class MessageReceivedHandler : IHandleMessages public async Task Handle(MessageReceived message) { - _logger.LogInformation("Received message: {@Message}", message); + _logger.LogInformation("Received message: {@Message}.", message); var matches = await _textSubscriptionService.Get(); @@ -36,7 +36,7 @@ public sealed class MessageReceivedHandler : IHandleMessages { if (match.IsMatches(message.ChatUsername, message.Text)) { - _logger.LogInformation("Message {@Message} matched {@Match}", message, match); + _logger.LogInformation("Message {@Message} matched {@Match}.", message, match); var @event = new TextSubscriptionMatched { SubscriptionId = match.Id, diff --git a/src/Nocr.TextMatcher.AppServices/TextSubscriptions/Services/TextSubscriptionsService.cs b/src/Nocr.TextMatcher.AppServices/TextSubscriptions/Services/TextSubscriptionsService.cs index cd4e51f..8f1a747 100644 --- a/src/Nocr.TextMatcher.AppServices/TextSubscriptions/Services/TextSubscriptionsService.cs +++ b/src/Nocr.TextMatcher.AppServices/TextSubscriptions/Services/TextSubscriptionsService.cs @@ -96,9 +96,9 @@ public sealed class TextSubscriptionsService : ITextSubscriptionsService public async Task DeactivateAllSubscriptionsById(long userId, CancellationToken cancellationToken = default) { - _logger.LogInformation("Deactivating all subscriptions for user {UserId}", userId); + _logger.LogInformation("Deactivating all subscriptions for user {UserId}.", userId); await _repository.DeactivateAllSubscriptionsById(userId, cancellationToken); - _logger.LogInformation("Successfully deactivated all subscriptions for user {UserId}", userId); + _logger.LogInformation("Successfully deactivated all subscriptions for user {UserId}.", userId); } private TextSubscriptionData MapToTextMatchData(TextSubscription textSubscription)