Use RC_LEVEL_SHUTDOWN

This commit is contained in:
Christian Ruppert 2011-12-29 03:16:53 +01:00
parent b754a27f62
commit 8dcb7554ee

View File

@ -280,7 +280,7 @@ rc_logger_open(const char *level)
* logfile or its basedir may be read-only during shutdown so skip
* the error in this case
*/
if (strcmp(level, "shutdown") != 0) {
if (strcmp(level, RC_LEVEL_SHUTDOWN) != 0) {
log_error = 1;
eerror("Error: fopen(%s) failed: %s", logfile, strerror(errno));
}