Skip to content

Commit

Permalink
[TH2-5073] Pretty hex dump
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Plotnikov committed Sep 19, 2023
1 parent f6637eb commit 2a6ac28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/exactpro/th2/act/ActHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ private void sendMessage(Message message, EventID parentEventId) throws IOExcept
//May be use in future for filtering
//request.getConnectionId().getSessionAlias();
MessageID messageID = message.getMetadata().getId();
messageRouter.send(toBatch(toGroup(parsedMessage), messageID.getBookName(), messageID.getConnectionId().getSessionGroup()));
messageRouter.send(toBatch(toGroup(parsedMessage), messageID.getBookName(), messageID.getConnectionId().getSessionGroup()), SEND_QUEUE_ATTRIBUTE);
//TODO remove after solving issue TH2-217
//TODO process response
EventBatch eventBatch = EventBatch.newBuilder()
Expand Down Expand Up @@ -614,7 +614,7 @@ private com.exactpro.th2.common.grpc.Event createSendMessageEvent(ParsedMessage
private com.exactpro.th2.common.grpc.Event createSendRawMessageEvent(RawMessage message, EventID parentEventId) throws IOException {
Event event = start()
.name("Sent raw message to connectivity");
com.exactpro.th2.common.event.bean.Message messageBean = EventUtils.createMessageBean(ByteBufUtil.hexDump(message.getBody()));
com.exactpro.th2.common.event.bean.Message messageBean = EventUtils.createMessageBean(ByteBufUtil.prettyHexDump(message.getBody()));
event.status(Status.PASSED);
event.bodyData(messageBean);
event.type("Outgoing message");
Expand Down

0 comments on commit 2a6ac28

Please sign in to comment.