Skip to content

Commit 83b3e1a

Browse files
authored
Reduce log entries for client info errors. (#1217)
We're all getting annoyed with this in the cloud env, the internal DNS entries that this block sees are rather long so literally every call puts an error message that we really don't need to care about.
1 parent 3676960 commit 83b3e1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cwms-data-api/src/main/java/cwms/cda/data/dao/JooqDao.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private static Connection setClientInfo(Context ctx, Connection connection) {
201201
connection.setClientInfo("OCSID.ACTION", ctx.method());
202202
connection.setClientInfo("OCSID.CLIENTID", ctx.url().replace(ctx.path(), "") + ctx.contextPath());
203203
} catch (SQLClientInfoException ex) {
204-
logger.atWarning()
204+
logger.atFinest() // this is usually useless information
205205
.withCause(ex)
206206
.log("Unable to set client info on connection.");
207207
}

0 commit comments

Comments
 (0)