From ec5e42694dae36e6b1fcf4576b644db6f983058c Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Tue, 3 Oct 2023 15:12:01 +0200 Subject: [PATCH] Silence noisy debug messages, useful only to developers Signed-off-by: Joachim Wiberg --- src/devmon.c | 2 +- src/plugin.c | 2 +- src/service.c | 2 ++ src/svc.c | 8 ++------ 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/devmon.c b/src/devmon.c index 87762693..c7baba9f 100644 --- a/src/devmon.c +++ b/src/devmon.c @@ -237,7 +237,7 @@ static void devmon_cb(uev_t *w, void *arg, int events) continue; } - dbg("Got %s", ev->name); +// dbg("Got %s", ev->name); if (ev->mask & (IN_CREATE | IN_DELETE)) devmon_update_conds(iwp->path, ev->name, ev->mask); } diff --git a/src/plugin.c b/src/plugin.c index 29c88498..884faa1c 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -288,7 +288,7 @@ static void generic_io_cb(uev_t *w, void *arg, int events) /* Stop watcher, callback may close descriptor on us ... */ uev_io_stop(w); - dbg("Calling I/O %s from runloop...", basename(p->name)); +// dbg("Calling I/O %s from runloop...", basename(p->name)); p->io.cb(p->io.arg, w->fd, events); /* Update fd, may be changed by plugin callback, e.g., if FIFO */ diff --git a/src/service.c b/src/service.c index 6a676248..cb7c7c0d 100644 --- a/src/service.c +++ b/src/service.c @@ -2294,9 +2294,11 @@ restart: svc_set_state(svc, SVC_WAITING_STATE); else { if (svc_is_conflict(svc)) { +#if 0 logit(svc->nowarn ? LOG_DEBUG : LOG_INFO, "%s in conflict with %s, checking again ...", svc_ident(svc, NULL, 0), svc->conflict); +#endif if (!svc_conflicts(svc)) svc_unblock(svc); } diff --git a/src/svc.c b/src/svc.c index 4b756e46..02d786b8 100644 --- a/src/svc.c +++ b/src/svc.c @@ -717,14 +717,10 @@ int svc_ifthen(const char *ident, char *stmt) ptr[i] = 0; cond = cond_get(stmt); - if (not && cond == COND_ON) { - logit(LOG_NOTICE, "skipping %s, cond %s is on.", ident, stmt); + if (not && cond == COND_ON) return 0; - } - if (!not && cond == COND_OFF) { - logit(LOG_NOTICE, "skipping %s, cond %s is off.", ident, stmt); + if (!not && cond == COND_OFF) return 0; - } return 1; }