From d4ae56657fa27b97bbe606d58657ad9ad076ed01 Mon Sep 17 00:00:00 2001 From: Frank Maritato Date: Wed, 30 Dec 2009 00:28:36 +0000 Subject: [PATCH] added a trace log check git-svn-id: https://lwes.svn.sourceforge.net/svnroot/lwes/lwes-java/trunk@385 a2f82657-cdd2-4550-bd36-68a8e7111808 --- src/main/java/org/lwes/listener/DatagramDequeuer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/lwes/listener/DatagramDequeuer.java b/src/main/java/org/lwes/listener/DatagramDequeuer.java index 2d7e99d..b870d1f 100644 --- a/src/main/java/org/lwes/listener/DatagramDequeuer.java +++ b/src/main/java/org/lwes/listener/DatagramDequeuer.java @@ -78,7 +78,9 @@ public class DatagramDequeuer extends ThreadedDequeuer { event.setInt64(Event.RECEIPT_TIME, timestamp); event.setIPAddress(Event.SENDER_IP, address); event.setUInt16(Event.SENDER_PORT, port); - Log.trace("Dispatching event " + event.toString()); + if (Log.isLogTrace()) { + Log.trace("Dispatching event " + event.toString()); + } dispatchEvent(event); } catch (Exception e) { -- 2.11.4.GIT