Skip to content

Commit d2861fc

Browse files
improve logging
1 parent fcab9ce commit d2861fc

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.idea/runConfigurations/kafka_clients_example.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

superstream-clients/dependency-reduced-pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>ai.superstream</groupId>
55
<artifactId>superstream-clients</artifactId>
66
<name>Superstream Kafka Client Optimizer</name>
7-
<version>1.0.18</version>
7+
<version>1.0.19</version>
88
<description>A Java library that dynamically optimizes Kafka client configuration based on recommendations</description>
99
<url>https://github.com/superstreamlabs/superstream-clients-java</url>
1010
<developers>

superstream-clients/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>ai.superstream</groupId>
88
<artifactId>superstream-clients</artifactId>
9-
<version>1.0.18</version>
9+
<version>1.0.19</version>
1010
<packaging>jar</packaging>
1111

1212
<name>Superstream Kafka Client Optimizer</name>

superstream-clients/src/main/java/ai/superstream/core/ClientStatsReporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ private void run() {
225225
}
226226
producer.flush();
227227
} catch (Exception e) {
228-
logger.error("[ERR-022] Cluster stats coordinator failed for {}: {}", bootstrapServers, e.getMessage(), e);
228+
logger.error("[ERR-022] Cluster stats coordinator failed for {}, please make sure the Kafka user has read/write/describe permissions on superstream.* topics: {}. Full stack trace:", bootstrapServers, e.getMessage(), e);
229229
}
230230
}
231231
}

superstream-clients/src/main/java/ai/superstream/core/MetadataConsumer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ public MetadataMessage getMetadataMessage(String bootstrapServers, Properties or
7878
String json = records.iterator().next().value();
7979
return objectMapper.readValue(json, MetadataMessage.class);
8080
} catch (IOException e) {
81-
logger.error("[ERR-027] Unable to retrieve optimizations data from Superstream. This is required for optimization. Please contact the Superstream team if the issue persists.");
81+
logger.error("[ERR-027] Unable to retrieve optimizations data from Superstream. This is required for optimization. Please contact the Superstream team if the issue persists.", e);
8282
return null;
8383
} catch (Exception e) {
84-
logger.error("[ERR-028] Unable to retrieve optimizations data from Superstream. This is required for optimization. Please contact the Superstream team if the issue persists.");
84+
logger.error("[ERR-028] Unable to retrieve optimizations data from Superstream. This is required for optimization. Please make sure the Kafka user has read/write/describe permissions on superstream.* topics.", e);
8585
return null;
8686
}
8787
}

superstream-clients/src/main/java/ai/superstream/util/NetworkUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static String getHostname() {
7272
cachedHostname = localHost.getHostName();
7373
return cachedHostname;
7474
} catch (UnknownHostException e) {
75-
logger.error("[ERR-034] Failed to determine local hostname", e);
75+
logger.error("[ERR-091] Failed to determine local hostname", e);
7676
return "";
7777
}
7878
}

0 commit comments

Comments
 (0)