Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/main/java/in/dragonbra/javasteam/steam/CMClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ public void send(IClientMsg msg) {
msg.setSteamID(_steamID);
}

logger.debug(String.format("Sent -> EMsg: %s (Proto: %s)", msg.getMsgType(), msg.isProto()));

try {
if (debugNetworkListener != null) {
debugNetworkListener.onOutgoingNetworkMessage(msg.getMsgType(), msg.serialize());
Expand Down Expand Up @@ -247,8 +245,6 @@ protected boolean onClientMsgReceived(IPacketMsg packetMsg) {
return false;
}

logger.debug(String.format("<- Recv'd EMsg: %s (%d) (Proto: %s)", packetMsg.getMsgType(), packetMsg.getMsgType().code(), packetMsg.isProto()));

// Multi message gets logged down the line after it's decompressed
if (packetMsg.getMsgType() != EMsg.Multi) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* Dump any network messages sent to and received from the Steam server that the client is connected to.
* These messages are dumped to file, and can be analyzed further with NetHookAnalyzer, a hex editor, or your own purpose-built tools.
*
* <p>
* Be careful with this, sensitive data may be written to the disk (such as your Steam password).
*/
public class NetHookNetworkListener implements IDebugNetworkListener {
Expand All @@ -42,6 +42,8 @@ public NetHookNetworkListener(String path) {

@Override
public void onIncomingNetworkMessage(EMsg msgType, byte[] data) {
logger.debug(String.format("<- Recv'd EMsg: %s (%d)", msgType, msgType.code()));

try {
Files.write(Paths.get(new File(logDirectory, getFile("in", msgType)).getAbsolutePath()), data);
} catch (IOException e) {
Expand All @@ -51,6 +53,8 @@ public void onIncomingNetworkMessage(EMsg msgType, byte[] data) {

@Override
public void onOutgoingNetworkMessage(EMsg msgType, byte[] data) {
logger.debug(String.format("Sent -> EMsg: %s", msgType));

try {
Files.write(Paths.get(new File(logDirectory, getFile("out", msgType)).getAbsolutePath()), data);
} catch (IOException e) {
Expand Down