You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ya...@apache.org on 2026/06/06 18:11:18 UTC
(airavata) branch master updated: chore: reword duplicate-seed WARNs and quiet Kafka config dumps (#626)
This is an automated email from the ASF dual-hosted git repository.
yasithdev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/master by this push:
new e9db41f830 chore: reword duplicate-seed WARNs and quiet Kafka config dumps (#626)
e9db41f830 is described below
commit e9db41f83054941a69dc6bcc993fa8b5e860360b
Author: Yasith Jayawardana <ya...@gatech.edu>
AuthorDate: Sat Jun 6 14:11:14 2026 -0400
chore: reword duplicate-seed WARNs and quiet Kafka config dumps (#626)
Reword the idempotent-seed warnings ("A domain with id=... already exists,
skipping recreation") and raise the Kafka client *Config loggers to WARN so
their verbose value dumps stay out of normal INFO logs (recoverable by
setting those loggers back to INFO).
---
.../java/org/apache/airavata/sharing/service/SharingService.java | 6 +++---
airavata-server/src/main/resources/logback.xml | 4 ++++
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/airavata-api/sharing-service/src/main/java/org/apache/airavata/sharing/service/SharingService.java b/airavata-api/sharing-service/src/main/java/org/apache/airavata/sharing/service/SharingService.java
index 5db2886f9a..cc26e36c4a 100644
--- a/airavata-api/sharing-service/src/main/java/org/apache/airavata/sharing/service/SharingService.java
+++ b/airavata-api/sharing-service/src/main/java/org/apache/airavata/sharing/service/SharingService.java
@@ -85,7 +85,7 @@ public class SharingService implements SharingFacade, SharingProvider {
return domain.getDomainId();
} catch (DuplicateEntryException e) {
- logger.warn("Domain {} already exists, skipping creation", domain.getDomainId());
+ logger.warn("A domain with id={} already exists, skipping recreation", domain.getDomainId());
return domain.getDomainId();
} catch (Throwable ex) {
logger.error(ex.getMessage(), ex);
@@ -639,7 +639,7 @@ public class SharingService implements SharingFacade, SharingProvider {
(new EntityTypeRepository()).create(entityType);
return entityType.getEntityTypeId();
} catch (DuplicateEntryException e) {
- logger.warn("EntityType {} already exists, skipping creation", entityType.getEntityTypeId());
+ logger.warn("An entity type with id={} already exists, skipping recreation", entityType.getEntityTypeId());
return entityType.getEntityTypeId();
} catch (Throwable ex) {
logger.error(ex.getMessage(), ex);
@@ -734,7 +734,7 @@ public class SharingService implements SharingFacade, SharingProvider {
(new PermissionTypeRepository()).create(permissionType);
return permissionType.getPermissionTypeId();
} catch (DuplicateEntryException e) {
- logger.warn("PermissionType {} already exists, skipping creation", permissionType.getPermissionTypeId());
+ logger.warn("A permission type with id={} already exists, skipping recreation", permissionType.getPermissionTypeId());
return permissionType.getPermissionTypeId();
} catch (Throwable ex) {
logger.error(ex.getMessage(), ex);
diff --git a/airavata-server/src/main/resources/logback.xml b/airavata-server/src/main/resources/logback.xml
index 1dbc9cafc2..e5569fd6e0 100644
--- a/airavata-server/src/main/resources/logback.xml
+++ b/airavata-server/src/main/resources/logback.xml
@@ -30,6 +30,10 @@
<logger name="org.apache.zookeeper" level="ERROR" />
<logger name="org.apache.airavata" level="INFO" />
<logger name="org.hibernate" level="ERROR" />
+ <!-- Kafka client config dumps are very verbose; keep them out of normal (INFO) logs. -->
+ <logger name="org.apache.kafka.clients.producer.ProducerConfig" level="WARN" />
+ <logger name="org.apache.kafka.clients.consumer.ConsumerConfig" level="WARN" />
+ <logger name="org.apache.kafka.clients.admin.AdminClientConfig" level="WARN" />
<root level="INFO">
<appender-ref ref="Console" />