connected = manager_is_connected(m);
if (connected && !online) {
- log_info("No network connectivity, watching for changes.");
+ /* When m->talking is false, we have not received any responses from the server,
+ * and it is not necessary to log about disconnection. */
+ log_full(m->talking ? LOG_INFO : LOG_DEBUG,
+ "No network connectivity, watching for changes.");
manager_disconnect(m);
} else if ((!connected || changed) && online) {
- log_info("Network configuration changed, trying to establish connection.");
+ log_full(connected ? LOG_DEBUG : LOG_INFO,
+ "Network configuration changed, trying to establish connection.");
if (m->current_server_address)
r = manager_begin(m);