#262 reduce Google Analytics log level to FINE, so that it's silent by default if connection cannot be established

This commit is contained in:
Anton Keks 2020-10-27 18:49:10 +02:00
parent a53ceb7b7a
commit 319a5ebd64

View File

@ -9,7 +9,7 @@ import java.net.URL;
import java.net.URLEncoder;
import java.util.logging.Logger;
import static java.util.logging.Level.WARNING;
import static java.util.logging.Level.FINE;
import static net.azib.ipscan.config.Config.getConfig;
/**
@ -44,7 +44,7 @@ public class GoogleAnalytics {
conn.disconnect();
}
catch (Exception e) {
Logger.getLogger(getClass().getName()).log(WARNING, "Failed to report", e);
Logger.getLogger(getClass().getName()).log(FINE, "Failed to report", e);
}
}