mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[common] improve logging
This commit is contained in:
@@ -33,7 +33,10 @@ namespace West.Entertainment.Handler
|
||||
{
|
||||
if (!_userService.IsUserSuper(From))
|
||||
{
|
||||
_logger.LogInformation("{User} attempted to call /cooldowns in \"{Chat}\"", From, Chat.Title);
|
||||
_logger.LogWarning("{User} attempted to use super-user command /cooldowns in {Chat}",
|
||||
From.ToLog(),
|
||||
Chat.ToLog()
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,10 @@ public class Roll : CommonHandler
|
||||
{
|
||||
if (!_userService.IsUserSuper(From))
|
||||
{
|
||||
_logger.LogWarning("{user} attempted to use super-user command", From.ToLog());
|
||||
_logger.LogWarning("{User} attempted to use super-user command /reset_roll in {Chat}",
|
||||
From.ToLog(),
|
||||
Chat.ToLog()
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user