From 9814cf57792f43e95755bcf62237ae759c453645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 23 Jul 2024 12:12:50 +0200 Subject: [PATCH] notify: clean up logging messages --- notify.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/notify.c b/notify.c index af89838b..9a9311ee 100644 --- a/notify.c +++ b/notify.c @@ -189,7 +189,8 @@ notify_notify(struct terminal *term, struct notification *notif) bool track_notification = notif->focus || notif->report; - LOG_DBG("notify: title=\"%s\", body=\"%s\"", title, body); + LOG_DBG("notify: title=\"%s\", body=\"%s\", icon=\"%s\" (tracking: %s)", + title, body, icon_name_or_path, track_notification ? "yes" : "no"); xassert(title != NULL); if (title == NULL) @@ -309,7 +310,7 @@ add_icon(struct notification_icon *icon, const char *id, const char *symbolic_na icon->tmp_file_on_disk = xstrdup(name); } - LOG_DBG("added icon to cache: %s: sym=%s, file=%s", + LOG_DBG("added icon to cache: ID=%s: sym=%s, file=%s", icon->id, icon->symbolic_name, icon->tmp_file_on_disk); } @@ -355,6 +356,7 @@ notify_icon_del(struct terminal *term, const char *id) if (icon->id == NULL || strcmp(icon->id, id) != 0) continue; + LOG_DBG("expelled %s from the notification icon cache", icon->id); notify_icon_free(icon); return; }