if (scan_module_folders())
return -1;
- syslog(0, "kmodloader: loading kernel modules from %s\n", path);
+ syslog(LOG_INFO, "kmodloader: loading kernel modules from %s\n", path);
if (glob(path, gl_flags, NULL, &gl) < 0)
goto out;
uloop_timeout_set(&retry, 1000);
} else {
uloop_fd_add(&sender, ULOOP_READ);
- syslog(0, "Logread connected to %s:%s\n", log_ip, log_port);
+ syslog(LOG_INFO, "Logread connected to %s:%s\n", log_ip, log_port);
}
}
err = send(sender.fd, buf, strlen(buf), 0);
if (err < 0) {
- syslog(0, "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);