diff --git a/source/net/sourceforge/filebot/Analytics.java b/source/net/sourceforge/filebot/Analytics.java index 64567b6f..2da3fd24 100644 --- a/source/net/sourceforge/filebot/Analytics.java +++ b/source/net/sourceforge/filebot/Analytics.java @@ -31,8 +31,6 @@ 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; @@ -252,4 +250,10 @@ public class Analytics { throw new UnsupportedOperationException(); } + + static { + // 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); + } + }