diff --git a/src/Cnblogs.Architecture.Ddd.Cqrs.Abstractions/LoggingBehavior.cs b/src/Cnblogs.Architecture.Ddd.Cqrs.Abstractions/LoggingBehavior.cs index 1ff65d5..2cc23b7 100644 --- a/src/Cnblogs.Architecture.Ddd.Cqrs.Abstractions/LoggingBehavior.cs +++ b/src/Cnblogs.Architecture.Ddd.Cqrs.Abstractions/LoggingBehavior.cs @@ -1,4 +1,5 @@ -using MediatR; +using System.Text.Json; +using MediatR; using Microsoft.Extensions.Logging; @@ -31,7 +32,7 @@ public async Task Handle( { _logger.LogDebug("Handling {@Request}", request); var result = await next(); - _logger.LogDebug("Handled {@Request}", request); + _logger.LogDebug("Handled {@Request}, Response: {Response}", request, JsonSerializer.Serialize(result)); return result; } -} \ No newline at end of file +}