Skip to content

Commit 6105244

Browse files
author
lucaijun
committed
AJ-559: fix connection pool without userId or password
1 parent b813565 commit 6105244

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/com/xxdb/SimpleDBConnectionPool.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ protected class SimpleDBConnectionPoolImpl {
100100
}
101101
poolEntryArrayList.add(poolEntry);
102102
}
103+
if (userId.isEmpty() || password.isEmpty())
104+
log.warn("Create connection pool successfully without log in.");
105+
else
106+
log.info("Create connection pool successfully with log in.");
103107
poolEntries = new CopyOnWriteArrayList<>(poolEntryArrayList);
104108
} catch (Exception e) {
105109
log.error("Create connection pool failure, because " + e.getMessage());

0 commit comments

Comments
 (0)