Skip to content

Commit 6cdad63

Browse files
committed
Improve doGet debug log when status is unexpected
Include okStatusCodes in the debug message when a GET response has a status code not in the allowed set, per review feedback. Signed-off-by: Parameshwaran Krishnasamy <Parameshwaran.K@ibm.com>
1 parent 6fb632d commit 6cdad63

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/KafkaConnectApiImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ private <T> CompletableFuture<T> doGet(Reconciliation reconciliation, String hos
131131
LOGGER.debugCr(reconciliation, "Got {} response to GET request to {}: {}", statusCode, path, json.asText());
132132
return CompletableFuture.completedFuture(OBJECT_MAPPER.convertValue(json, type));
133133
} else {
134-
LOGGER.debugCr(reconciliation, "Got {} response to GET request to {}", statusCode, path);
134+
LOGGER.debugCr(reconciliation, "Got unexpected {} response to GET request to {}. Ok status codes: {}",
135+
statusCode, path, okStatusCodes);
135136
String message;
136137
if (statusCode >= 200 && statusCode < 300) {
137138
// Unlisted 2xx: poll may get 200 before 404 after delete.

0 commit comments

Comments
 (0)