Skip to content

Commit

Permalink
Get Physical Id from database connection al connection create only if…
Browse files Browse the repository at this point in the history
… jdbc log is enabled

Issue:101832
  • Loading branch information
iroqueta committed Apr 14, 2023
1 parent 4fd68da commit dcabb81
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions java/src/main/java/com/genexus/db/driver/GXConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,12 @@ public GXConnection( ModelContext context, int handle, String user, String passw
context.afterGetConnection(handle, dataSource);
}
}
String DBMSId = getDBMSId();
if (!DBMSId.equals(""))
if (DEBUG && isLogEnabled())
{
log(GXDBDebug.LOG_MIN, "Physical Id : " + DBMSId);
String DBMSId = getDBMSId();
if (!DBMSId.equals("")) {
log(GXDBDebug.LOG_MIN, "Physical Id : " + DBMSId);
}
}
}

Expand Down

0 comments on commit dcabb81

Please sign in to comment.