refactor(tray): Use spdlog for SNI::Item error messages

pull/339/head
Aleksei Bavshin 2019-05-20 05:35:05 -07:00
parent cdb347aaca
commit 316a9be656
1 changed files with 5 additions and 10 deletions

View File

@ -54,15 +54,10 @@ void Item::proxyReady(Glib::RefPtr<Gio::AsyncResult>& result) {
// this->event_box.set_tooltip_text(this->title); // this->event_box.set_tooltip_text(this->title);
} catch (const Glib::Error& err) { } catch (const Glib::Error& err) {
g_error("Failed to create DBus Proxy for %s %s: %s", spdlog::error(
bus_name.c_str(), "Failed to create DBus Proxy for {} {}: {}", bus_name, object_path, err.what().raw());
object_path.c_str(),
err.what().c_str());
} catch (const std::exception& err) { } catch (const std::exception& err) {
g_error("Failed to create DBus Proxy for %s %s: %s", spdlog::error("Failed to create DBus Proxy for {} {}: {}", bus_name, object_path, err.what());
bus_name.c_str(),
object_path.c_str(),
err.what());
} }
} }
@ -140,9 +135,9 @@ void Item::processUpdatedProperties(Glib::RefPtr<Gio::AsyncResult>& _result) {
this->updateImage(); this->updateImage();
// this->event_box.set_tooltip_text(this->title); // this->event_box.set_tooltip_text(this->title);
} catch (const Glib::Error& err) { } 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) { } catch (const std::exception& err) {
g_warning("Failed to update properties: %s", err.what()); spdlog::warn("Failed to update properties: {}", err.what());
} }
} }