refactor(mpd): prefer debug over warn
parent
08dce576bd
commit
8fbaf06cbe
|
@ -74,7 +74,11 @@ std::thread waybar::modules::MPD::event_listener() {
|
||||||
dp.emit();
|
dp.emit();
|
||||||
}
|
}
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
spdlog::warn("{}: {}", module_name_, e.what());
|
if (e.what() == "Connection to MPD closed") {
|
||||||
|
spdlog::debug("{}: {}", module_name_, e.what());
|
||||||
|
} else {
|
||||||
|
spdlog::warn("{}: {}", module_name_, e.what());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue