Skip to content

Commit

Permalink
network: make log level lower when operations are automatically re-tr…
Browse files Browse the repository at this point in the history
…ied later

When networkd has not connected and setting hostname/timezone is
requested, the operation is delayed, not canceled. So, logging in
debug level is sufficient for the corresponding log message.

Closes #9699.

(cherry picked from commit e0d95f0)
  • Loading branch information
yuwata authored and keszybz committed Oct 29, 2018
1 parent b27f562 commit 8a2d17a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/network/networkd-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@ int manager_set_hostname(Manager *m, const char *hostname) {
return log_oom();

if (!m->bus || sd_bus_is_ready(m->bus) <= 0) {
log_info("Not connected to system bus, not setting hostname.");
log_debug("Not connected to system bus, setting hostname later.");
return 0;
}

Expand Down Expand Up @@ -1806,7 +1806,7 @@ int manager_set_timezone(Manager *m, const char *tz) {
return log_oom();

if (!m->bus || sd_bus_is_ready(m->bus) <= 0) {
log_info("Not connected to system bus, not setting timezone.");
log_debug("Not connected to system bus, setting timezone later.");
return 0;
}

Expand Down

0 comments on commit 8a2d17a

Please sign in to comment.