From 136d8329fb9fab86ebeed59b08e3256706aedcaf Mon Sep 17 00:00:00 2001 From: Ruberoid Date: Tue, 22 Jul 2025 00:10:00 +0300 Subject: [PATCH] Log messages translated into english and some punctuation fixes. --- src/Nocr.Users.AppServices/Users/Services/UsersService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Nocr.Users.AppServices/Users/Services/UsersService.cs b/src/Nocr.Users.AppServices/Users/Services/UsersService.cs index d85c7d3..7981c53 100644 --- a/src/Nocr.Users.AppServices/Users/Services/UsersService.cs +++ b/src/Nocr.Users.AppServices/Users/Services/UsersService.cs @@ -56,12 +56,12 @@ public sealed class UsersService : IUsersService var user = await _repository.GetUserById(userId, cancellationToken); if (user == null) { - _logger.LogWarning("User with ID {UserId} not found for blocking bot", userId); + _logger.LogWarning("User with ID {UserId} not found for blocking bot.", userId); return; } await _repository.UpdateBotBlockedStatus(userId, true, cancellationToken); - _logger.LogInformation("Bot blocked for user {UserId}", userId); + _logger.LogInformation("Bot blocked for user {UserId}.", userId); } public async Task UnblockBot(long userId, CancellationToken cancellationToken = default) @@ -69,12 +69,12 @@ public sealed class UsersService : IUsersService var user = await _repository.GetUserById(userId, cancellationToken); if (user == null) { - _logger.LogWarning("User with ID {UserId} not found for unblocking bot", userId); + _logger.LogWarning("User with ID {UserId} not found for unblocking bot.", userId); return; } await _repository.UpdateBotBlockedStatus(userId, false, cancellationToken); - _logger.LogInformation("Bot unblocked for user {UserId}", userId); + _logger.LogInformation("Bot unblocked for user {UserId}.", userId); } private static UserData? MapToUserData(User? user)