* fixed annoying analytics failed request logging
This commit is contained in:
parent
a8f1b1c57a
commit
d6b207d234
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue