diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2012-06-24 15:02:17 +0400 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2012-06-24 15:02:17 +0400 |
commit | 7a7c38268e09a67134b34a0a8e4fcba4f8bf639a (patch) | |
tree | e4b26cce451ef7b6c694cfa523ce54314e3e8f4c | |
parent | c498c14727a90539c008f7b05185a62d6ee6512e (diff) | |
download | traccar-server-7a7c38268e09a67134b34a0a8e4fcba4f8bf639a.tar.gz traccar-server-7a7c38268e09a67134b34a0a8e4fcba4f8bf639a.tar.bz2 traccar-server-7a7c38268e09a67134b34a0a8e4fcba4f8bf639a.zip |
Handle exceptions in channel (fix #17)
-rw-r--r-- | src/org/traccar/GenericPipelineFactory.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/GenericPipelineFactory.java b/src/org/traccar/GenericPipelineFactory.java index 7577b70fc..13a4cf6b6 100644 --- a/src/org/traccar/GenericPipelineFactory.java +++ b/src/org/traccar/GenericPipelineFactory.java @@ -75,7 +75,11 @@ public abstract class GenericPipelineFactory implements ChannelPipelineFactory { } Log.fine(msg); + } else if (e instanceof ExceptionEvent) { + ExceptionEvent event = (ExceptionEvent) e; + Log.warning(event.getCause().getMessage()); } + // TODO: handle other events } } |