mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
log more info. for issue #1682
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user