log tweak

This commit is contained in:
zzz
2012-08-21 19:48:04 +00:00
parent ddc1d7c6bc
commit 7d902cca1e

View File

@@ -719,8 +719,8 @@ class UPnP extends ControlPoint implements DeviceChangeListener, EventListener {
public void onChangePublicPorts(Set<ForwardPort> ports, ForwardPortCallback cb) {
Set<ForwardPort> portsToDumpNow = null;
Set<ForwardPort> portsToForwardNow = null;
if (_log.shouldLog(Log.WARN))
_log.warn("UP&P Forwarding "+ports.size()+" ports...");
if (_log.shouldLog(Log.INFO))
_log.info("UP&P Forwarding "+ports.size()+" ports...");
synchronized(lock) {
if(forwardCallback != null && forwardCallback != cb && cb != null) {
_log.error("ForwardPortCallback changed from "+forwardCallback+" to "+cb+" - using new value, but this is very strange!");