- Rescan for devices periodically and when reachability changes (tickets #661, #959)
  - Don't put "I2P" in registered protocol name
  - Add uptime to UPnP info
  - HTML escaping
  - Remove static log on Android
  - Javadocs and cleanups
This commit is contained in:
zzz
2015-01-28 15:04:59 +00:00
parent 5da492b9e5
commit 59373f9bdf
6 changed files with 170 additions and 29 deletions

View File

@@ -17,6 +17,7 @@ package org.cybergarage.util;
import net.i2p.I2PAppContext;
import net.i2p.util.Log;
import net.i2p.util.SystemVersion;
public final class Debug
{
@@ -24,6 +25,9 @@ public final class Debug
/** I2P this is all static so have the UPnPManager call this */
public static void initialize(I2PAppContext ctx) {
// don't keep static ref on android, just skip it
if (SystemVersion.isAndroid())
return;
_log = ctx.logManager().getLog(Debug.class);
// org.cybergarage.util.Debug=DEBUG at startup
enabled = _log.shouldLog(Log.DEBUG);