Log messages translated into english and some punctuation fixes.
This commit is contained in:
parent
5fcc76a136
commit
68cd5a0b1a
@ -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,
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user