Skip to content

Commit

Permalink
Merge pull request #774 from xPaw/patch-7
Browse files Browse the repository at this point in the history
Remove sent/recv debug messages
  • Loading branch information
yaakov-h authored Nov 2, 2019
2 parents 919af92 + 6ca7648 commit c256b70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions SteamKit2/SteamKit2/Steam/CMClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,6 @@ public void Send( IClientMsg msg )
msg.SteamID = this.SteamID;
}

DebugLog.WriteLine( "CMClient", "Sent -> EMsg: {0} (Proto: {1})", msg.MsgType, msg.IsProto );

try
{
DebugNetworkListener?.OnOutgoingNetworkMessage(msg.MsgType, msg.Serialize());
Expand Down Expand Up @@ -304,8 +302,6 @@ protected virtual bool OnClientMsgReceived( [NotNullWhen(true)] IPacketMsg? pack
return false;
}

DebugLog.WriteLine( "CMClient", "<- Recv'd EMsg: {0} ({1}) (Proto: {2})", packetMsg.MsgType, ( int )packetMsg.MsgType, packetMsg.IsProto );

// Multi message gets logged down the line after it's decompressed
if ( packetMsg.MsgType != EMsg.Multi )
{
Expand Down
4 changes: 4 additions & 0 deletions SteamKit2/SteamKit2/Util/DebugNetworkListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ public NetHookNetworkListener( string path )
/// <param name="data">Raw packet data that was received.</param>
public void OnIncomingNetworkMessage( EMsg msgType, byte[] data )
{
DebugLog.WriteLine( "NetHook", $"<- Recv'd EMsg: {msgType} ({( int )msgType})" );

LogNetMessage( "in", msgType, data );
}

Expand All @@ -92,6 +94,8 @@ public void OnIncomingNetworkMessage( EMsg msgType, byte[] data )
/// <param name="data">Raw packet data that will be sent.</param>
public void OnOutgoingNetworkMessage( EMsg msgType, byte[] data )
{
DebugLog.WriteLine( "NetHook", $"Sent -> EMsg: {msgType} ({( int )msgType})" );

LogNetMessage( "out", msgType, data );
}

Expand Down

0 comments on commit c256b70

Please sign in to comment.