From b02cbbcbd8c1bc8d3dc649cc68798db18c817336 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey Date: Thu, 19 Jun 2014 23:03:01 +0100 Subject: [PATCH] Add timestamp for each packet in logpacket command to correlate output with other logs --- .../examples/TestClient/Commands/System/LogPacketCommand.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Programs/examples/TestClient/Commands/System/LogPacketCommand.cs b/Programs/examples/TestClient/Commands/System/LogPacketCommand.cs index 4d460431..76ef63f9 100644 --- a/Programs/examples/TestClient/Commands/System/LogPacketCommand.cs +++ b/Programs/examples/TestClient/Commands/System/LogPacketCommand.cs @@ -67,7 +67,9 @@ namespace OpenMetaverse.TestClient { // Console.WriteLine( // "Received packet {0} from {1} for {2}", args.Packet.Type, args.Simulator.Name, m_client.Self.Name); - m_logStreamWriter.Write(PacketDecoder.PacketToString(args.Packet)); + + m_logStreamWriter.WriteLine("Received at {0}", DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss.fff")); + m_logStreamWriter.WriteLine(PacketDecoder.PacketToString(args.Packet)); if (--m_packetsToLogRemaining <= 0) {