diff --git a/src/Services/InteractionHandlingService.cs b/src/Services/InteractionHandlingService.cs index b2a6f21..cfd8353 100644 --- a/src/Services/InteractionHandlingService.cs +++ b/src/Services/InteractionHandlingService.cs @@ -287,7 +287,7 @@ private async Task HandleCommandExecutedAsync(IApplicationCommandInfo command, I var exception = ((ExecuteResult)result).Exception; _logger.LogError(exception, "Failed to execute {Type} Command \"{Command}\" for {User} ({Id}) in {Context} due to an exception.", - command.CommandType, command, context.User, context.User.Id, context.Display()); + command.CommandType, commandName, context.User, context.User.Id, context.Display()); var localizer = _services.GetRequiredService>(); localizer.CurrentCulture = CultureInfo.GetCultureInfo(context.Interaction.GetLanguageCode()); @@ -296,7 +296,7 @@ private async Task HandleCommandExecutedAsync(IApplicationCommandInfo command, I else { _logger.LogWarning("Failed to execute {Type} Command \"{Command}\" for {User} ({Id}) in {Context}. Reason: {Reason}", - command.CommandType, command, context.User, context.User.Id, context.Display(), message); + command.CommandType, commandName, context.User, context.User.Id, context.Display(), message); } var embed = new EmbedBuilder()