Skip to content

Commit d8f0ee4

Browse files
authored
Get Physical Id from database connection al connection create only if jdbc log is enabled (#710)
Issue:101832
1 parent beb3aa9 commit d8f0ee4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

java/src/main/java/com/genexus/db/driver/GXConnection.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,12 @@ public GXConnection( ModelContext context, int handle, String user, String passw
275275
context.afterGetConnection(handle, dataSource);
276276
}
277277
}
278-
String DBMSId = getDBMSId();
279-
if (!DBMSId.equals(""))
278+
if (DEBUG && isLogEnabled())
280279
{
281-
log(GXDBDebug.LOG_MIN, "Physical Id : " + DBMSId);
280+
String DBMSId = getDBMSId();
281+
if (!DBMSId.equals("")) {
282+
log(GXDBDebug.LOG_MIN, "Physical Id : " + DBMSId);
283+
}
282284
}
283285
}
284286

0 commit comments

Comments
 (0)