Remove useless rc_runlevel_get() call
The current runlevel will be passed to rc_logger_open() already.
This commit is contained in:
parent
ec65f181ea
commit
b754a27f62
@ -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(rc_runlevel_get(), "shutdown") != 0) {
|
if (strcmp(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