Mercurial > sci
changeset 42:4076b07c7a6f
sciworkerd: disable useless messages
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 09 Aug 2022 14:54:59 +0200 |
parents | 00b9af607524 |
children | 6854efe15210 |
files | sciworkerd/sciworkerd.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
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);