mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-10 06:20:27 -04:00
* finally fix this logger problem??
This commit is contained in:
parent
e85f69113e
commit
5cb775fdac
@ -31,10 +31,12 @@ public class Analytics {
|
|||||||
|
|
||||||
|
|
||||||
public static synchronized JGoogleAnalyticsTracker getTracker() {
|
public static synchronized JGoogleAnalyticsTracker getTracker() {
|
||||||
|
|
||||||
if (tracker != null)
|
if (tracker != null)
|
||||||
return tracker;
|
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
|
// initialize tracker
|
||||||
visitorData = restoreVisitorData();
|
visitorData = restoreVisitorData();
|
||||||
tracker = new JGoogleAnalyticsTracker(getConfig(getApplicationProperty("analytics.WebPropertyID"), visitorData), V_4_7_2);
|
tracker = new JGoogleAnalyticsTracker(getConfig(getApplicationProperty("analytics.WebPropertyID"), visitorData), V_4_7_2);
|
||||||
@ -252,7 +254,7 @@ public class Analytics {
|
|||||||
|
|
||||||
|
|
||||||
static {
|
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);
|
Logger.getLogger("com.dmurph.tracking").setLevel(Level.OFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user