diff --git a/examples/src/OpenDis7Examples/EspduSender.java b/examples/src/OpenDis7Examples/EspduSender.java index a5e9e200ea8a2f9e2bf4362c17c9e54c306b20f2..28178a9d36f4bdf962a9da4f0a742cd465fbc635 100644 --- a/examples/src/OpenDis7Examples/EspduSender.java +++ b/examples/src/OpenDis7Examples/EspduSender.java @@ -34,13 +34,13 @@ public class EspduSender * Default multicast port used, matches Wireshark DIS capture default */ public static final int DEFAULT_MULTICAST_PORT = 3000; - + public enum NetworkMode { UNICAST, MULTICAST, BROADCAST }; /** - * Output prefix to identify this class + * Output prefix to identify this class, helps with logging */ private final static String TRACE_PREFIX = "[" + EspduSender.class.getName() + "] "; @@ -295,7 +295,7 @@ public class EspduSender FirePdu firePdu = new FirePdu(); firePdu.setLocationInWorldCoordinates(espdu.getEntityLocation()); byte[] fireArray = firePdu.marshal(); - + // CommentPdu newCommentPdu = new CommentPdu(); // ArrayList<VariableDatum> payloadList = new ArrayList<>(); // ArrayList<String> commentsList = new ArrayList<>(); @@ -349,7 +349,7 @@ public class EspduSender } catch (Exception e) { - System.out.println(TRACE_PREFIX + "Problem with " + e.getMessage() + ", see exception trace:"); + System.out.println(TRACE_PREFIX + "Problem with " + e + ", see exception trace:"); System.out.println(e); } System.out.println("==============="); @@ -400,7 +400,7 @@ public class EspduSender } catch (SocketException e) { - System.out.println(TRACE_PREFIX + "Problem with .getBroadcastAddresses(), see exception trace:" + e.getMessage()); + System.out.println(TRACE_PREFIX + "Problem with .getBroadcastAddresses(), see exception trace:" + e); System.out.println(e); } return broadcastAddresses;