fix kernlog init

This commit is contained in:
Konstantin Stepanov 2023-12-13 03:06:56 +02:00 committed by GitHub
parent 50018af20d
commit fe1f4a64f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ static ANACRONTAB_FILE: &str = "/etc/anacrontab"; // AnacrontabEntry
static REBOOT_FILE: &str = "/run/crond.reboot";
fn main() -> Result<(), Error> {
log::set_logger(|filter| kernlog::KernelLog::init_level(log::LevelFilter::Error, filter)).unwrap();
kernlog::init().unwrap();
let dest_dir = match env::args().nth(1) {
None => {