Remove useless rc_runlevel_get() call

The current runlevel will be passed to rc_logger_open() already.
This commit is contained in:
Christian Ruppert 2011-12-29 03:08:29 +01:00
parent ec65f181ea
commit b754a27f62

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(rc_runlevel_get(), "shutdown") != 0) {
if (strcmp(level, "shutdown") != 0) {
log_error = 1;
eerror("Error: fopen(%s) failed: %s", logfile, strerror(errno));
}