From d6b207d234f1f8a678a74a14f17eece154ac6d86 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 14 Jul 2012 08:52:48 +0000 Subject: [PATCH] * fixed annoying analytics failed request logging --- source/net/sourceforge/filebot/Analytics.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/net/sourceforge/filebot/Analytics.java b/source/net/sourceforge/filebot/Analytics.java index c4f8457d..64567b6f 100644 --- a/source/net/sourceforge/filebot/Analytics.java +++ b/source/net/sourceforge/filebot/Analytics.java @@ -31,12 +31,12 @@ public class Analytics { public static synchronized JGoogleAnalyticsTracker getTracker() { + // disable useless background logging, if it doesn't work it doesn't work, won't affect anything + Logger.getLogger("com.dmurph.tracking").setLevel(Level.OFF); + if (tracker != null) return tracker; - // disable useless background logging - Logger.getLogger(JGoogleAnalyticsTracker.class.getName()).setLevel(Level.OFF); - // initialize tracker visitorData = restoreVisitorData(); tracker = new JGoogleAnalyticsTracker(getConfig(getApplicationProperty("analytics.WebPropertyID"), visitorData), V_4_7_2);