Skip to content

Commit afd3525

Browse files
jkebingerclaude
andauthored
Reduce SSE logging verbosity and bump version to 1.0.3 (#17)
* Reduce SSE logging verbosity to avoid noise Changed SSE event logging from INFO to DEBUG level to reduce log noise: - Comment events now logged at DEBUG instead of INFO - Removed redundant "Unexpected error encountered" INFO log in onError - Changed "Unexpected stream completion" from INFO to DEBUG in onComplete - Changed if/if to if/else if for cleaner event handling These are normal operational events that don't need INFO level logging. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * Bump version to 1.0.3 Updated version from 1.0.2 to 1.0.3 across all modules. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * Reformat file --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent e285da1 commit afd3525

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

micronaut/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.reforge</groupId>
66
<artifactId>sdk-parent</artifactId>
7-
<version>1.0.2</version>
7+
<version>1.0.3</version>
88
</parent>
99

1010
<artifactId>sdk-micronaut-extension</artifactId>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<groupId>com.reforge</groupId>
1212
<artifactId>sdk-parent</artifactId>
1313

14-
<version>1.0.2</version>
14+
<version>1.0.3</version>
1515
<packaging>pom</packaging>
1616
<name>Reforge SDK Parent POM</name>
1717
<description>Parent POM for Reforge SDK modules providing feature flags, configuration management, and A/B testing capabilities</description>

sdk/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.reforge</groupId>
66
<artifactId>sdk-parent</artifactId>
7-
<version>1.0.2</version>
7+
<version>1.0.3</version>
88
</parent>
99

1010
<artifactId>sdk</artifactId>

sdk/src/main/java/com/reforge/sdk/internal/SseConfigStreamingSubscriber.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,8 @@ public void onSubscribe(Flow.Subscription subscription) {
109109
public void onNext(Event item) {
110110
if (item instanceof CommentEvent) {
111111
CommentEvent commentEvent = (CommentEvent) item;
112-
LOG.info("Received comment event: {}", commentEvent);
113-
}
114-
if (item instanceof DataEvent) {
112+
LOG.debug("Received comment event: {}", commentEvent);
113+
} else if (item instanceof DataEvent) {
115114
DataEvent dataEvent = (DataEvent) item;
116115
try {
117116
hasReceivedData.set(true);
@@ -142,7 +141,6 @@ public void onNext(Event item) {
142141

143142
@Override
144143
public void onError(Throwable throwable) {
145-
LOG.info("Unexpected error encountered", throwable);
146144
if (Optional.ofNullable(throwable.getMessage()).orElse("").contains("GOAWAY")) {
147145
LOG.debug("Got GOAWAY on SSE config stream, will restart connection.");
148146
} else {
@@ -154,7 +152,7 @@ public void onError(Throwable throwable) {
154152
@Override
155153
public void onComplete() {
156154
// this is called even on auth failure
157-
LOG.info("Unexpected stream completion");
155+
LOG.debug("Unexpected stream completion");
158156
restartHandler.accept(getHasReceivedData());
159157
}
160158

0 commit comments

Comments
 (0)