Skip to content

Commit

Permalink
Merge pull request #636 from op-transactility/main
Browse files Browse the repository at this point in the history
Add property to debug iso errors
  • Loading branch information
ar authored Jan 23, 2025
2 parents 6bded12 + 81a9b5f commit e0564ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jpos/src/main/java/org/jpos/iso/BaseChannel.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public abstract class BaseChannel extends Observable
private static final int DEFAULT_TIMEOUT = 300000;
private int nextHostPort = 0;
private boolean roundRobin = false;
private boolean debugIsoError = true;

private Counter msgOutCounter;
private Counter msgInCounter;
Expand Down Expand Up @@ -834,7 +835,7 @@ else if (len > 0 && len <= getMaxPacketLength()) {
evt.addMessage ("--- header ---");
evt.addMessage (ISOUtil.hexdump (header));
}
if (b != null) {
if (b != null && debugIsoError) {
evt.addMessage ("--- data ---");
evt.addMessage (ISOUtil.hexdump (b));
}
Expand Down Expand Up @@ -1097,6 +1098,7 @@ public void setConfiguration (Configuration cfg)
keepAlive = cfg.getBoolean ("keep-alive", false);
expectKeepAlive = cfg.getBoolean ("expect-keep-alive", false);
roundRobin = cfg.getBoolean ("round-robin", false);
debugIsoError = cfg.getBoolean ("debug-iso-error", true);
if (socketFactory != this && socketFactory instanceof Configurable)
((Configurable)socketFactory).setConfiguration (cfg);
try {
Expand Down

0 comments on commit e0564ca

Please sign in to comment.