diff --git a/src/main.c b/src/main.c
index f855bae..e8af708 100644
--- a/src/main.c
+++ b/src/main.c
@@ -62,7 +62,7 @@ void check_requirements()
uid_t uid=getuid(), euid=geteuid();
if (uid != 0 || euid != 0) {
- syslog(LOG_INFO, "%s needs root privileges. Please run %s as root. Exiting.", PROGRAM_NAME, PROGRAM_NAME);
+ syslog(LOG_ERR, "%s needs root privileges. Please run %s as root. Exiting.", PROGRAM_NAME, PROGRAM_NAME);
printf("%s not started with root privileges. Please run %s as root. Exiting.\n", PROGRAM_NAME, PROGRAM_NAME);
exit(EXIT_FAILURE);
}
@@ -78,7 +78,7 @@ void check_requirements()
DIR* dir = opendir(CORETEMP_PATH);
if (ENOENT == errno) {
- syslog(LOG_INFO, "%s needs coretemp support. Please either load it or build it into the kernel. Exiting.", PROGRAM_NAME);
+ syslog(LOG_ERR, "%s needs coretemp support. Please either load it or build it into the kernel. Exiting.", PROGRAM_NAME);
printf("%s needs coretemp module.\nPlease either load it or build it into the kernel. Exiting.\n", PROGRAM_NAME);
exit(EXIT_FAILURE);
}
@@ -93,7 +93,7 @@ void check_requirements()
DIR* dir = opendir(APPLESMC_PATH);
if (ENOENT == errno) {
- syslog(LOG_INFO, "%s needs applesmc support. Please either load it or build it into the kernel. Exiting.", PROGRAM_NAME);
+ syslog(LOG_ERR, "%s needs applesmc support. Please either load it or build it into the kernel. Exiting.", PROGRAM_NAME);
printf("%s needs applesmc module.\nPlease either load it or build it into the kernel. Exiting.\n", PROGRAM_NAME);
exit(EXIT_FAILURE);
}
diff --git a/src/mbpfan.c b/src/mbpfan.c
index 1ea439a..f2706db 100755
--- a/src/mbpfan.c
+++ b/src/mbpfan.c
@@ -213,7 +213,7 @@ t_sensors *retrieve_sensors()
}
if (!sensors_found > 0){
- syslog(LOG_INFO, "mbpfan could not detect any temp sensor. Please contact the developer.\n");
+ syslog(LOG_CRIT, "mbpfan could not detect any temp sensor. Please contact the developer.\n");
printf("mbpfan could not detect any temp sensor. Please contact the developer.\n");
exit(EXIT_FAILURE);
}
@@ -303,7 +303,7 @@ t_fans *retrieve_fans()
}
if (!fans_found > 0){
- syslog(LOG_INFO, "mbpfan could not detect any fan. Please contact the developer.\n");
+ syslog(LOG_CRIT, "mbpfan could not detect any fan. Please contact the developer.\n");
printf("mbpfan could not detect any fan. Please contact the developer.\n");
exit(EXIT_FAILURE);
}
@@ -431,7 +431,7 @@ void retrieve_settings(const char* settings_path)
printf("Couldn't read configfile\n");
if(daemonize) {
- syslog(LOG_INFO, "Couldn't read configfile");
+ syslog(LOG_WARNING, "Couldn't read configfile");
}
}
Correct syslog use for priority codes [fixes #44]
42be2d5c76e99c3b9b0bbb743cf4a04027cb33c0
Daniel Graziotin <daniel@ineed.coffee> · 2014-06-29T12:58 ·
browse files at this commit
parents:
b037ec2