* fixed annoying analytics failed request logging

This commit is contained in:
Reinhard Pointner 2012-07-14 08:52:48 +00:00
parent a8f1b1c57a
commit d6b207d234
1 changed files with 3 additions and 3 deletions

View File

@ -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);