aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/org/traccar/GenericPipelineFactory.java2
-rw-r--r--test/org/traccar/protocol/Pt502ProtocolDecoderTest.java4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/GenericPipelineFactory.java b/src/org/traccar/GenericPipelineFactory.java
index d2012753e..3d20ec433 100644
--- a/src/org/traccar/GenericPipelineFactory.java
+++ b/src/org/traccar/GenericPipelineFactory.java
@@ -81,7 +81,7 @@ public abstract class GenericPipelineFactory implements ChannelPipelineFactory {
Log.fine(msg);
} else if (e instanceof ExceptionEvent) {
ExceptionEvent event = (ExceptionEvent) e;
- Log.warning(event.getCause().getMessage());
+ Log.warning(event.getCause().toString());
}
// TODO: handle other events
}
diff --git a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
index 5cf3318d6..f8c4c43d2 100644
--- a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java
@@ -21,6 +21,10 @@ public class Pt502ProtocolDecoderTest {
assertNotNull(decoder.decode(null, null,
"$POS,6095,233344.000,V,0933.0451,N,06912.3360,W,,,151112,,,N/00000,00000/0/1677600/"));
+
+ /*assertNotNull(decoder.decode(null, null,
+ "$PHO0,6091,233606.000,A,0902.9855,N,06944.3654,W,0.0,43.8,141112,,,A/00010,00000/0/224000//"));*/
+
}