summaryrefslogtreecommitdiff
path: root/mgmtd
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2024-07-22 07:52:10 -0400
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-07-22 14:37:04 +0000
commite8506a06db2eb5fea4a65cd8077735f1b30f71cf (patch)
treea8d0b40a6f0a724d5c5bc1d760b59ff5bca1eaa5 /mgmtd
parentc9bd77c918d489899788bf016fc77dff5c68b1f8 (diff)
lib: move non-error from __log_err to __dbg
Additionally, print `errmsg_if_any` in successful debug messages if non-NULL. fixes #16386 #16043 Signed-off-by: Christian Hopps <chopps@labn.net> (cherry picked from commit 7afd7d99f2fa39be073625c630d46f96e5dd66a5)
Diffstat (limited to 'mgmtd')
-rw-r--r--mgmtd/mgmt_txn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mgmtd/mgmt_txn.c b/mgmtd/mgmt_txn.c
index c1cb33f6f3..f0f6844d5f 100644
--- a/mgmtd/mgmt_txn.c
+++ b/mgmtd/mgmt_txn.c
@@ -919,8 +919,8 @@ static int mgmt_txn_create_config_batches(struct mgmt_txn_req *txn_req,
}
if (!chg_clients)
- __log_err("No connected daemon is interested in XPATH %s",
- xpath);
+ __dbg("Daemons interested in XPATH are not currently connected: %s",
+ xpath);
cmtcfg_req->clients |= chg_clients;
@@ -931,7 +931,7 @@ static int mgmt_txn_create_config_batches(struct mgmt_txn_req *txn_req,
if (!num_chgs) {
(void)mgmt_txn_send_commit_cfg_reply(txn_req->txn,
MGMTD_NO_CFG_CHANGES,
- "No changes found to commit!");
+ "No connected daemons interested in changes");
return -1;
}