uloop_timeout_set(&retry, 1000);
} else {
uloop_fd_add(&sender, ULOOP_READ);
- syslog(LOG_INFO, "Logread connected to %s:%s\n", log_ip, log_port);
+
+ if (log_udp < 2)
+ syslog(LOG_INFO, "Logread connected to %s:%s via %s\n",
+ log_ip, log_port, (log_udp) ? ("udp") : ("tcp"));
+
+ if (log_udp == 1)
+ ++log_udp;
}
}
}
if (err < 0) {
- syslog(LOG_INFO, "failed to send log data to %s:%s via %s\n",
+ syslog(LOG_INFO, "Failed to send log data to %s:%s via %s\n",
log_ip, log_port, (log_udp) ? ("udp") : ("tcp"));
uloop_fd_delete(&sender);
close(sender.fd);