refactor(mpd): prefer debug over warn

This commit is contained in:
Alex 2020-05-16 09:29:37 +02:00
parent 08dce576bd
commit 8fbaf06cbe
1 changed files with 5 additions and 1 deletions

View File

@ -74,7 +74,11 @@ std::thread waybar::modules::MPD::event_listener() {
dp.emit();
}
} 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());
}
}
}
});