mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor(tray): Use spdlog for SNI::Item error messages
This commit is contained in:
parent
cdb347aaca
commit
316a9be656
@ -54,15 +54,10 @@ void Item::proxyReady(Glib::RefPtr<Gio::AsyncResult>& result) {
|
||||
// this->event_box.set_tooltip_text(this->title);
|
||||
|
||||
} catch (const Glib::Error& err) {
|
||||
g_error("Failed to create DBus Proxy for %s %s: %s",
|
||||
bus_name.c_str(),
|
||||
object_path.c_str(),
|
||||
err.what().c_str());
|
||||
spdlog::error(
|
||||
"Failed to create DBus Proxy for {} {}: {}", bus_name, object_path, err.what().raw());
|
||||
} catch (const std::exception& err) {
|
||||
g_error("Failed to create DBus Proxy for %s %s: %s",
|
||||
bus_name.c_str(),
|
||||
object_path.c_str(),
|
||||
err.what());
|
||||
spdlog::error("Failed to create DBus Proxy for {} {}: {}", bus_name, object_path, err.what());
|
||||
}
|
||||
}
|
||||
|
||||
@ -140,9 +135,9 @@ void Item::processUpdatedProperties(Glib::RefPtr<Gio::AsyncResult>& _result) {
|
||||
this->updateImage();
|
||||
// this->event_box.set_tooltip_text(this->title);
|
||||
} catch (const Glib::Error& err) {
|
||||
g_warning("Failed to update properties: %s", err.what().c_str());
|
||||
spdlog::warn("Failed to update properties: {}", err.what().raw());
|
||||
} catch (const std::exception& err) {
|
||||
g_warning("Failed to update properties: %s", err.what());
|
||||
spdlog::warn("Failed to update properties: {}", err.what());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user