From 383d4e7b731b2935ca67f9e1d7c2f6f5a92b8fac Mon Sep 17 00:00:00 2001 From: Jorge Esteban Quilcate Otoya Date: Sat, 12 Oct 2024 20:18:38 +0300 Subject: [PATCH] chore: change log level to debug when reloading This reloading could happen many times without being actionable and adding noise to the logs. There is already an info logging when there are changes on reloading. --- src/main/java/io/aiven/kafka/auth/AivenAclAuthorizerV2.java | 2 +- .../aiven/kafka/auth/AivenSaslPlainServerCallbackHandler.java | 2 +- .../aiven/kafka/auth/AivenSaslScramServerCallbackHandler.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/aiven/kafka/auth/AivenAclAuthorizerV2.java b/src/main/java/io/aiven/kafka/auth/AivenAclAuthorizerV2.java index 1a9c1ad..a69073d 100644 --- a/src/main/java/io/aiven/kafka/auth/AivenAclAuthorizerV2.java +++ b/src/main/java/io/aiven/kafka/auth/AivenAclAuthorizerV2.java @@ -186,7 +186,7 @@ public final List authorize(final AuthorizableRequestContex * Read ACL entries from config file. */ private List loadAcls(final AclJsonReader jsonReader) { - LOGGER.info("Reloading ACL configuration..."); + LOGGER.debug("Reloading ACL configuration..."); try { return jsonReader.read(); } catch (final JsonReaderException ex) { diff --git a/src/main/java/io/aiven/kafka/auth/AivenSaslPlainServerCallbackHandler.java b/src/main/java/io/aiven/kafka/auth/AivenSaslPlainServerCallbackHandler.java index f0bc516..cf5e89d 100644 --- a/src/main/java/io/aiven/kafka/auth/AivenSaslPlainServerCallbackHandler.java +++ b/src/main/java/io/aiven/kafka/auth/AivenSaslPlainServerCallbackHandler.java @@ -54,7 +54,7 @@ public void configure(final Map configs, final List jaasConfigEntries) { configFileLocation = JaasContext.configEntryOption( jaasConfigEntries, "users.config", PlainLoginModule.class.getName()); - LOGGER.info("Using configuration file {}", configFileLocation); + LOGGER.debug("Using configuration file {}", configFileLocation); jsonReader = new UsernamePasswordJsonReader(Paths.get(configFileLocation)); } diff --git a/src/main/java/io/aiven/kafka/auth/AivenSaslScramServerCallbackHandler.java b/src/main/java/io/aiven/kafka/auth/AivenSaslScramServerCallbackHandler.java index 60a551f..7017187 100644 --- a/src/main/java/io/aiven/kafka/auth/AivenSaslScramServerCallbackHandler.java +++ b/src/main/java/io/aiven/kafka/auth/AivenSaslScramServerCallbackHandler.java @@ -61,7 +61,7 @@ public void configure(final Map configs, final List jaasConfigEntries) { configFileLocation = JaasContext.configEntryOption( jaasConfigEntries, "users.config", ScramLoginModule.class.getName()); - LOGGER.info("Using configuration file {}", configFileLocation); + LOGGER.debug("Using configuration file {}", configFileLocation); mechanismName = mechanism; final ScramMechanism scramMechanism = ScramMechanism.forMechanismName(mechanismName); if (scramMechanism != null) {