log more info. for issue #1682

This commit is contained in:
wenshao
2017-04-14 11:56:23 +08:00
parent a0db5a1d90
commit 85aeca86ec
@@ -782,7 +782,16 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
lock.unlock();
if (init && LOG.isInfoEnabled()) {
LOG.info("{dataSource-" + this.getID() + "} inited");
String msg = "{dataSource-" + this.getID();
if (this.name != null && !this.name.isEmpty()) {
msg += ",";
msg += this.name;
}
msg += "} inited";
LOG.info(msg);
}
}
}