Mercurial > sci
diff sciworkerd/sciworkerd.c @ 42:4076b07c7a6f
sciworkerd: disable useless messages
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 09 Aug 2022 14:54:59 +0200 |
parents | e52c762d8ba8 |
children | 95bc6b4ec753 |
line wrap: on
line diff
--- a/sciworkerd/sciworkerd.c Tue Aug 09 14:52:34 2022 +0200 +++ b/sciworkerd/sciworkerd.c Tue Aug 09 14:54:59 2022 +0200 @@ -125,7 +125,8 @@ } } - log_info(TAG "added %zu new pending tasks", total); + if (total) + log_info(TAG "added %zu new pending tasks", total); } /* @@ -141,7 +142,7 @@ if (difftime((now = time(NULL)), startup) >= sciworkerd.fetchinterval) { startup = now; - log_info(TAG "fetching jobs"); + log_debug(TAG "fetching jobs"); if (!(jobs = apic_job_todo(&req, sciworkerd.name))) log_warn(TAG "unable to fetch jobs: %s", req.error);