From 9032b563ed1ad5d7e7d0eb60506b7625b267824b Mon Sep 17 00:00:00 2001 From: Francesco Vasco Date: Wed, 10 Jan 2024 07:14:37 +0100 Subject: [PATCH] AbstractWatchManager.java: log the entire message if an error is not a status Co-authored-by: Steven Hawkins --- .../kubernetes/client/dsl/internal/AbstractWatchManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/AbstractWatchManager.java b/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/AbstractWatchManager.java index c11b6df435b..e9ffeb16582 100644 --- a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/AbstractWatchManager.java +++ b/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/AbstractWatchManager.java @@ -368,7 +368,7 @@ protected void onMessage(String message, WatchRequestState state) { onStatus(status, state); } else { - logger.error("Error received, but object is not a status - will retry"); + logger.error("Received an error which is not a status but {} - will retry", message); closeRequest(); } } else if (object instanceof HasMetadata) {