From 868f7d36cc26552cc7377a6a81913fa8803bc3bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 22 Nov 2019 14:19:51 +0100 Subject: [PATCH] core/service: downgrade "scheduling restart" message to debug I see we log this during every boot, even though it is a routine expected event: Nov 12 14:50:01 krowka systemd[1]: systemd-journald.service: Service has no hold-off time (RestartSec=0), scheduling restart. (and for other services too). Let's downgrade this to debug level. https://bugzilla.redhat.com/show_bug.cgi?id=1614871 --- src/core/service.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/service.c b/src/core/service.c index 4b17889eb4..49ad166c26 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -3758,12 +3758,12 @@ static int service_dispatch_timer(sd_event_source *source, usec_t usec, void *us case SERVICE_AUTO_RESTART: if (s->restart_usec > 0) { char buf_restart[FORMAT_TIMESPAN_MAX]; - log_unit_info(UNIT(s), - "Service RestartSec=%s expired, scheduling restart.", - format_timespan(buf_restart, sizeof buf_restart, s->restart_usec, USEC_PER_SEC)); + log_unit_debug(UNIT(s), + "Service RestartSec=%s expired, scheduling restart.", + format_timespan(buf_restart, sizeof buf_restart, s->restart_usec, USEC_PER_SEC)); } else - log_unit_info(UNIT(s), - "Service has no hold-off time (RestartSec=0), scheduling restart."); + log_unit_debug(UNIT(s), + "Service has no hold-off time (RestartSec=0), scheduling restart."); service_enter_restart(s); break;