mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +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,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;
|
||||
|
Loading…
Reference in New Issue
Block a user