Use RC_LEVEL_SHUTDOWN
This commit is contained in:
parent
b754a27f62
commit
8dcb7554ee
@ -280,7 +280,7 @@ rc_logger_open(const char *level)
|
|||||||
* logfile or its basedir may be read-only during shutdown so skip
|
* logfile or its basedir may be read-only during shutdown so skip
|
||||||
* the error in this case
|
* the error in this case
|
||||||
*/
|
*/
|
||||||
if (strcmp(level, "shutdown") != 0) {
|
if (strcmp(level, RC_LEVEL_SHUTDOWN) != 0) {
|
||||||
log_error = 1;
|
log_error = 1;
|
||||||
eerror("Error: fopen(%s) failed: %s", logfile, strerror(errno));
|
eerror("Error: fopen(%s) failed: %s", logfile, strerror(errno));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user