From caa949b5875898ff650211261be8b8aedadf57ce Mon Sep 17 00:00:00 2001 From: HueByte Date: Sat, 17 Sep 2022 01:26:20 +0200 Subject: [PATCH] T #89 Add group to command execution logging --- Huppy/Huppy.App/Middlewares/CommandLogMiddleware.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Huppy/Huppy.App/Middlewares/CommandLogMiddleware.cs b/Huppy/Huppy.App/Middlewares/CommandLogMiddleware.cs index b29f763..2917d5a 100644 --- a/Huppy/Huppy.App/Middlewares/CommandLogMiddleware.cs +++ b/Huppy/Huppy.App/Middlewares/CommandLogMiddleware.cs @@ -30,7 +30,7 @@ public async Task AfterAsync(ExtendedShardedInteractionContext context, ICommand CommandLog log = new() { - CommandName = commandInfo.Name, + CommandName = commandInfo.ToString(), Date = DateTime.UtcNow, IsSuccess = result.IsSuccess, UserId = context.User.Id, @@ -45,7 +45,7 @@ public async Task AfterAsync(ExtendedShardedInteractionContext context, ICommand if (result.IsSuccess) { - _logger.LogInformation("Command [{CommandName}] executed for [{Username}] in [{GuildName}] [{time} ms]", commandInfo.Name, context.User.Username, context.Guild.Name, string.Format("{0:n0}", watch.ElapsedMilliseconds)); + _logger.LogInformation("Command [{CommandName}] executed for [{Username}] in [{GuildName}] [{time} ms]", commandInfo.ToString(), context.User.Username, context.Guild.Name, string.Format("{0:n0}", watch.ElapsedMilliseconds)); } else {