mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
Merge pull request #14112 from keszybz/restart-no-log
core/service: downgrade "scheduling restart" message to debug
This commit is contained in:
commit
9b1f0b9064
@ -3758,11 +3758,11 @@ static int service_dispatch_timer(sd_event_source *source, usec_t usec, void *us
|
|||||||
case SERVICE_AUTO_RESTART:
|
case SERVICE_AUTO_RESTART:
|
||||||
if (s->restart_usec > 0) {
|
if (s->restart_usec > 0) {
|
||||||
char buf_restart[FORMAT_TIMESPAN_MAX];
|
char buf_restart[FORMAT_TIMESPAN_MAX];
|
||||||
log_unit_info(UNIT(s),
|
log_unit_debug(UNIT(s),
|
||||||
"Service RestartSec=%s expired, scheduling restart.",
|
"Service RestartSec=%s expired, scheduling restart.",
|
||||||
format_timespan(buf_restart, sizeof buf_restart, s->restart_usec, USEC_PER_SEC));
|
format_timespan(buf_restart, sizeof buf_restart, s->restart_usec, USEC_PER_SEC));
|
||||||
} else
|
} else
|
||||||
log_unit_info(UNIT(s),
|
log_unit_debug(UNIT(s),
|
||||||
"Service has no hold-off time (RestartSec=0), scheduling restart.");
|
"Service has no hold-off time (RestartSec=0), scheduling restart.");
|
||||||
|
|
||||||
service_enter_restart(s);
|
service_enter_restart(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user