Skip to content

Commit

Permalink
chore(clustering): adjust error log levels for control plane connecti…
Browse files Browse the repository at this point in the history
…ons (#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)
  • Loading branch information
tzssangglass authored and bungle committed Nov 19, 2024
1 parent 7e6e241 commit 6b7960e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/unreleased/kong/chore-clustering-log-level.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
message: "**Clustering**: Adjust error log levels for control plane connections."
type: bugfix
scope: Clustering
2 changes: 1 addition & 1 deletion kong/clustering/data_plane.lua
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function _M:communicate(premature)

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

-- load config from backup storage (DP-Resilience)
Expand Down

0 comments on commit 6b7960e

Please sign in to comment.