Skip to content

Commit edd1f5c

Browse files
committed
Log response status after metrics submission
1 parent 72c32ef commit edd1f5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/faststats/SimpleMetrics.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ protected void submitData() {
5454
.timeout(Duration.ofSeconds(3))
5555
.uri(URI.create(getURL()))
5656
.build();
57-
httpClient.send(request, HttpResponse.BodyHandlers.discarding());
58-
// todo: add debugs
57+
var send = httpClient.send(request, HttpResponse.BodyHandlers.discarding());
58+
debug("Metrics submitted with status code: " + send.statusCode());
5959
} catch (IOException | InterruptedException e) {
6060
// todo: shorten connection errors
6161
error("Failed to submit metrics", e);

0 commit comments

Comments
 (0)