Skip to content

Commit 6b7960e

Browse files
tzssangglassbungle
authored andcommitted
chore(clustering): adjust error log levels for control plane connections (#13863)
Changed error log level from ERROR to WARN for better clarity and to avoid alarming users unnecessarily when control plane connections break. This adjustment enhances user experience under connection interruptions. Fix:[FTI-6238](https://konghq.atlassian.net/browse/FTI-6238) Signed-off-by: tzssangglass <[email protected]> (cherry picked from commit af9eb5e)
1 parent 7e6e241 commit 6b7960e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
message: "**Clustering**: Adjust error log levels for control plane connections."
2+
type: bugfix
3+
scope: Clustering

kong/clustering/data_plane.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function _M:communicate(premature)
164164

165165
local c, uri, err = clustering_utils.connect_cp(self, "/v1/outlet")
166166
if not c then
167-
ngx_log(ngx_ERR, _log_prefix, "connection to control plane ", uri, " broken: ", err,
167+
ngx_log(ngx_WARN, _log_prefix, "connection to control plane ", uri, " broken: ", err,
168168
" (retrying after ", reconnection_delay, " seconds)", log_suffix)
169169

170170
-- load config from backup storage (DP-Resilience)

0 commit comments

Comments
 (0)