Log messages translated into english and some punctuation fixes.

This commit is contained in:
Ruberoid 2025-07-22 00:10:11 +03:00
parent 5fcc76a136
commit 68cd5a0b1a
2 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ public sealed class MessageReceivedHandler : IHandleMessages<MessageReceived>
public async Task Handle(MessageReceived message) public async Task Handle(MessageReceived message)
{ {
_logger.LogInformation("Received message: {@Message}", message); _logger.LogInformation("Received message: {@Message}.", message);
var matches = await _textSubscriptionService.Get(); var matches = await _textSubscriptionService.Get();
@ -36,7 +36,7 @@ public sealed class MessageReceivedHandler : IHandleMessages<MessageReceived>
{ {
if (match.IsMatches(message.ChatUsername, message.Text)) 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 var @event = new TextSubscriptionMatched
{ {
SubscriptionId = match.Id, SubscriptionId = match.Id,

View File

@ -96,9 +96,9 @@ public sealed class TextSubscriptionsService : ITextSubscriptionsService
public async Task DeactivateAllSubscriptionsById(long userId, CancellationToken cancellationToken = default) 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); 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) private TextSubscriptionData MapToTextMatchData(TextSubscription textSubscription)