diff --git a/source/net/sourceforge/filebot/Analytics.java b/source/net/sourceforge/filebot/Analytics.java index 2da3fd24..261f5a52 100644 --- a/source/net/sourceforge/filebot/Analytics.java +++ b/source/net/sourceforge/filebot/Analytics.java @@ -31,10 +31,12 @@ public class Analytics { public static synchronized JGoogleAnalyticsTracker getTracker() { - if (tracker != null) return tracker; + // disable useless background logging, if it doesn't work it doesn't work, won't affect anything (putting it here works for Java 6) + Logger.getLogger("com.dmurph.tracking").setLevel(Level.OFF); + // initialize tracker visitorData = restoreVisitorData(); tracker = new JGoogleAnalyticsTracker(getConfig(getApplicationProperty("analytics.WebPropertyID"), visitorData), V_4_7_2); @@ -252,7 +254,7 @@ public class Analytics { static { - // disable useless background logging, if it doesn't work it doesn't work, won't affect anything + // disable useless background logging, if it doesn't work it doesn't work, won't affect anything (putting it here works for Java 7) Logger.getLogger("com.dmurph.tracking").setLevel(Level.OFF); }