From 7a7c38268e09a67134b34a0a8e4fcba4f8bf639a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 24 Jun 2012 15:02:17 +0400 Subject: Handle exceptions in channel (fix #17) --- src/org/traccar/GenericPipelineFactory.java | 4 ++++ 1 file changed, 4 insertions(+) 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 } } -- cgit v1.2.3