* 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() {
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue