mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Adding spdlog
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
#include "modules/sway/mode.hpp"
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
namespace waybar::modules::sway {
|
||||
|
||||
@ -24,7 +25,7 @@ void Mode::onEvent(const struct Ipc::ipc_response& res) {
|
||||
}
|
||||
dp.emit();
|
||||
} catch (const std::exception& e) {
|
||||
std::cerr << "Mode: " << e.what() << std::endl;
|
||||
spdlog::error("Mode: {}", e.what());
|
||||
}
|
||||
}
|
||||
|
||||
@ -33,7 +34,7 @@ void Mode::worker() {
|
||||
try {
|
||||
ipc_.handleEvent();
|
||||
} catch (const std::exception& e) {
|
||||
std::cerr << "Mode: " << e.what() << std::endl;
|
||||
spdlog::error("Mode: {}", e.what());
|
||||
}
|
||||
};
|
||||
}
|
||||
@ -50,4 +51,4 @@ auto Mode::update() -> void {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace waybar::modules::sway
|
||||
} // namespace waybar::modules::sway
|
||||
|
Reference in New Issue
Block a user