mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
chore(tray): set logging to debug
This commit is contained in:
@@ -322,7 +322,7 @@ void TrayService::registerOrRefreshItem(const std::string& bus_name, const std::
|
||||
.onInterface(k_item_interface)
|
||||
.call([this, item_id](const std::string& /*title*/) { refreshItemMetadata(item_id); });
|
||||
|
||||
logInfo("tray item registered: {}", item_id);
|
||||
logDebug("tray item registered: {}", item_id);
|
||||
m_watcher_object->emitSignal("StatusNotifierItemRegistered").onInterface(k_watcher_interface).withArguments(item_id);
|
||||
m_watcher_object->emitPropertiesChangedSignal(
|
||||
k_watcher_interface,
|
||||
@@ -353,7 +353,7 @@ void TrayService::refreshItemMetadata(const std::string& item_id) {
|
||||
const auto attentionPixmaps = get_icon_pixmaps_or(*proxy_it->second, "AttentionIconPixmap", {});
|
||||
pickBestPixmap(attentionPixmaps, next.attentionArgb32, next.attentionWidth, next.attentionHeight);
|
||||
|
||||
logInfo(
|
||||
logDebug(
|
||||
"tray item metadata id={} status={} iconName='{}' attentionIconName='{}' iconThemePath='{}' iconPixmap={}x{} "
|
||||
"(bytes={}) attentionPixmap={}x{} (bytes={})",
|
||||
item_id, next.status, next.iconName, next.attentionIconName, next.iconThemePath, next.iconWidth,
|
||||
@@ -382,7 +382,7 @@ void TrayService::removeItemsForBusName(const std::string& bus_name) {
|
||||
for (const auto& item_id : removed_ids) {
|
||||
m_items.erase(item_id);
|
||||
m_item_proxies.erase(item_id);
|
||||
logInfo("tray item unregistered: {}", item_id);
|
||||
logDebug("tray item unregistered: {}", item_id);
|
||||
m_watcher_object->emitSignal("StatusNotifierItemUnregistered").onInterface(k_watcher_interface).withArguments(
|
||||
item_id);
|
||||
}
|
||||
|
||||
@@ -197,11 +197,11 @@ void TrayWidget::rebuild(Renderer& renderer) {
|
||||
m_container->addChild(std::move(image));
|
||||
m_loadedTextures.push_back(texture);
|
||||
m_item_ids.push_back(item.id);
|
||||
logInfo("tray widget icon id={} source=file path={} size={}x{}", item.id, iconPath, texture.width,
|
||||
logDebug("tray widget icon id={} source=file path={} size={}x{}", item.id, iconPath, texture.width,
|
||||
texture.height);
|
||||
continue;
|
||||
}
|
||||
logInfo("tray widget icon id={} source=file path={} failed-to-load", item.id, iconPath);
|
||||
logDebug("tray widget icon id={} source=file path={} failed-to-load", item.id, iconPath);
|
||||
}
|
||||
|
||||
const auto& pixmap = item.needsAttention && !item.attentionArgb32.empty() ? item.attentionArgb32 : item.iconArgb32;
|
||||
@@ -224,11 +224,11 @@ void TrayWidget::rebuild(Renderer& renderer) {
|
||||
m_container->addChild(std::move(image));
|
||||
m_loadedTextures.push_back(texture);
|
||||
m_item_ids.push_back(item.id);
|
||||
logInfo("tray widget icon id={} source=pixmap size={}x{} (bytes={})", item.id, pixmapW, pixmapH,
|
||||
logDebug("tray widget icon id={} source=pixmap size={}x{} (bytes={})", item.id, pixmapW, pixmapH,
|
||||
pixmap.size());
|
||||
continue;
|
||||
}
|
||||
logInfo("tray widget icon id={} source=pixmap size={}x{} failed-to-load", item.id, pixmapW, pixmapH);
|
||||
logDebug("tray widget icon id={} source=pixmap size={}x{} failed-to-load", item.id, pixmapW, pixmapH);
|
||||
}
|
||||
|
||||
auto icon = std::make_unique<Icon>();
|
||||
@@ -238,7 +238,7 @@ void TrayWidget::rebuild(Renderer& renderer) {
|
||||
icon->measure(renderer);
|
||||
m_container->addChild(std::move(icon));
|
||||
m_item_ids.push_back(item.id);
|
||||
logInfo("tray widget icon id={} source=glyph name={}", item.id, fallback);
|
||||
logDebug("tray widget icon id={} source=glyph name={}", item.id, fallback);
|
||||
}
|
||||
|
||||
m_hovered_index = -1;
|
||||
|
||||
Reference in New Issue
Block a user