Skip to content

Commit

Permalink
remove __type from request DTO body
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Apr 6, 2024
1 parent 60a76ec commit 27196e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MyApp.ServiceInterface/MqServicesBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ protected async Task ExecuteAsync<T>(IExecuteCommandAsync<T> command, T request)
}
catch (Exception e)
{
log.LogError(e, "{Command}({Request}) failed: {Message}", commandName, request.ToJsv(), e.Message);
var requestBody = JSON.stringify(request.ToObjectDictionary()).Replace("\"","");
log.LogError(e, "{Command}({Request}) failed: {Message}", commandName, requestBody, e.Message);

appConfig.AddCommandResult(new() {
Name = commandName,
Expand Down

0 comments on commit 27196e4

Please sign in to comment.