mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
log: downgrade syslog connection failure message since it might happen during normal operation
This commit is contained in:
parent
2edfa36685
commit
31a7034d38
@ -96,7 +96,7 @@ static int log_open_kmsg(void) {
|
||||
return 0;
|
||||
|
||||
if ((kmsg_fd = open("/dev/kmsg", O_WRONLY|O_NOCTTY|O_CLOEXEC)) < 0) {
|
||||
log_info("Failed to open /dev/kmsg for logging: %s", strerror(errno));
|
||||
log_error("Failed to open /dev/kmsg for logging: %s", strerror(errno));
|
||||
return -errno;
|
||||
}
|
||||
|
||||
@ -177,7 +177,7 @@ static int log_open_syslog(void) {
|
||||
|
||||
fail:
|
||||
log_close_syslog();
|
||||
log_info("Failed to open syslog for logging: %s", strerror(-r));
|
||||
log_debug("Failed to open syslog for logging: %s", strerror(-r));
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user