Skip to content

Commit

Permalink
logs: frames
Browse files Browse the repository at this point in the history
  • Loading branch information
limebell committed Dec 12, 2024
1 parent 9af4ea2 commit 4778de3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Libplanet.Net/Transports/NetMQTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,8 @@ private void ReceiveMessage(object? sender, NetMQSocketEventArgs e)
// Duplicate received message before distributing.
var copied = new NetMQMessage(raw.Select(f => f.Duplicate()));

_logger.Debug("Received message is {@Frames}", copied.ToArray());

Task.Factory.StartNew(
async () =>
{
Expand Down Expand Up @@ -711,7 +713,8 @@ await ReplyMessageAsync(
{
_logger.Error(
exc,
"Something went wrong during message processing");
"Something went wrong during message processing. {@Frames}",
copied.ToArray());
}
},
CancellationToken.None,
Expand Down

0 comments on commit 4778de3

Please sign in to comment.