Skip to content

Commit d626737

Browse files
julianladischvietj
authored andcommitted
Reduce parameter status change log level from WARN to DEBUG
``` String sql = "CREATE ROLE x;" + "CREATE ROLE y;" + "SET ROLE 'x';" + "SET ROLE 'y';" + "SET ROLE 'x';" + "SET ROLE 'y';"; PgPool.pool().withConnection(conn -> conn.query(sql).execute(); ``` creates a warning for each `SET ROLE`: ``` WARN Parameter is_superuser changed to off WARN Parameter is_superuser changed to off WARN Parameter is_superuser changed to off WARN Parameter is_superuser changed to off ``` Reducing the log level from WARN to DEBUG is more appropriate. If the messages are needed they can easily be enabled by setting PgCommandCodec log level to DEBUG in the logging configuration.
1 parent d6f279d commit d626737

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vertx-pg-client/src/main/java/io/vertx/pgclient/impl/codec/PgCommandCodec.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void handleAuthenticationSaslContinue(ByteBuf in) {
103103
}
104104

105105
void handleAuthenticationSaslFinal(ByteBuf in) {
106-
logger.warn(getClass().getSimpleName() + " should handle message AuthenticationSaslFinal");
106+
logger.warn(getClass().getSimpleName() + " should handle message AuthenticationSaslFinal");
107107
}
108108

109109
void handleAuthenticationClearTextPassword() {
@@ -115,7 +115,7 @@ void handleAuthenticationOk() {
115115
}
116116

117117
void handleParameterStatus(String key, String value) {
118-
logger.warn("Parameter " + key + " changed to " + value);
118+
logger.debug("Parameter " + key + " changed to " + value);
119119
}
120120

121121
/**

0 commit comments

Comments
 (0)