aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-11-15 22:32:21 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2012-11-15 22:32:21 +1300
commit2b6d8cb12c6a307b4ee9a0af12101042ec78803c (patch)
treef16b1a4f8b7d69c2d94c74b35a46d6ed59674c9e
parent113d83778acdff9288d8e68e54275bc73e8dbdc4 (diff)
downloadtrackermap-server-2b6d8cb12c6a307b4ee9a0af12101042ec78803c.tar.gz
trackermap-server-2b6d8cb12c6a307b4ee9a0af12101042ec78803c.tar.bz2
trackermap-server-2b6d8cb12c6a307b4ee9a0af12101042ec78803c.zip
Better error logging
-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//"));*/
+
}