Skip to content

Commit

Permalink
Fix command name in logs again
Browse files Browse the repository at this point in the history
  • Loading branch information
d4n3436 committed May 21, 2022
1 parent 058c178 commit 0dbdbb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/InteractionHandlingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<IFergunLocalizer<SharedResource>>();
localizer.CurrentCulture = CultureInfo.GetCultureInfo(context.Interaction.GetLanguageCode());
Expand All @@ -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()
Expand Down

0 comments on commit 0dbdbb5

Please sign in to comment.