This commit is contained in:
Justin Bertram 2017-12-05 09:39:28 -06:00
commit e129fc795b
1 changed files with 11 additions and 0 deletions

View File

@ -261,6 +261,11 @@ public class OpenWireConnection extends AbstractRemotingConnection implements Se
Command command = (Command) wireFormat.unmarshal(buffer);
// log the openwire command
if (logger.isTraceEnabled()) {
logger.trace("connectionID: " + connectionID + " RECEIVED: " + (command == null ? "NULL" : command));
}
boolean responseRequired = command.isResponseRequired();
int commandId = command.getCommandId();
@ -434,6 +439,12 @@ public class OpenWireConnection extends AbstractRemotingConnection implements Se
}
public void physicalSend(Command command) throws IOException {
if (logger.isTraceEnabled()) {
logger.trace("connectionID: " + (getTransportConnection() == null ? "" : getTransportConnection().getID())
+ " SENDING: " + (command == null ? "NULL" : command));
}
try {
ByteSequence bytes = wireFormat.marshal(command);
ActiveMQBuffer buffer = OpenWireUtil.toActiveMQBuffer(bytes);