Skip to content

Commit

Permalink
chore(clustering): adjust error log levels for control plane connections
Browse files Browse the repository at this point in the history
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 <tzssangglass@gmail.com>
  • Loading branch information
tzssangglass committed Nov 13, 2024
1 parent 3d462b5 commit 5b74b2f
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 @@ -153,7 +153,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)

assert(ngx.timer.at(reconnection_delay, function(premature)
Expand Down

0 comments on commit 5b74b2f

Please sign in to comment.