[Nagios-devel] [PATCH 5/5] base/workers: Be less loud when using

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] [PATCH 5/5] base/workers: Be less loud when using

Post by Guest »

From: Robin Sonefors

The fact that we didn't handle the job like usual is interesting, but
not quite /that/ interesting that we need it logged once per check -
let's convert that log message to a debug message.

Signed-off-by: Robin Sonefors
---
base/workers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/base/workers.c b/base/workers.c
index 7042724..e57708d 100644
--- a/base/workers.c
+++ b/base/workers.c
@@ -815,7 +815,7 @@ static worker_process *get_worker(worker_job *job)
wp_list = dkhash_get(specialized_workers, ++slash, NULL);
}
if (wp_list != NULL) {
- logit(NSLOG_INFO_MESSAGE, 1, "Found specialized worker(s) for '%s'", (slash && *slash != '/') ? slash : cmd_name);
+ log_debug_info(DEBUGL_CHECKS, 1, "Found specialized worker(s) for '%s'", (slash && *slash != '/') ? slash : cmd_name);
}
else {
if (!workers.wps)
--
1.7.11.7






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked