From 5b74b2ffb0ae388fba87b29aa7a89efea85b5a20 Mon Sep 17 00:00:00 2001 From: tzssangglass Date: Wed, 13 Nov 2024 11:15:42 +0800 Subject: [PATCH] chore(clustering): adjust error log levels for control plane connections 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 --- changelog/unreleased/kong/chore-clustering-log-level.yml | 3 +++ kong/clustering/data_plane.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/kong/chore-clustering-log-level.yml diff --git a/changelog/unreleased/kong/chore-clustering-log-level.yml b/changelog/unreleased/kong/chore-clustering-log-level.yml new file mode 100644 index 000000000000..392b3933287a --- /dev/null +++ b/changelog/unreleased/kong/chore-clustering-log-level.yml @@ -0,0 +1,3 @@ +message: "**Clustering**: Adjust error log levels for control plane connections." +type: bugfix +scope: Clustering diff --git a/kong/clustering/data_plane.lua b/kong/clustering/data_plane.lua index 35ae9161f270..75fa45818014 100644 --- a/kong/clustering/data_plane.lua +++ b/kong/clustering/data_plane.lua @@ -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)