[gnome-software] flatpak: Use apps' unique ID in debug messages



commit eb66c044723d3e9015b77edfa5d307914e4879d0
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Tue Feb 20 13:43:37 2018 +0100

    flatpak: Use apps' unique ID in debug messages
    
    Printing out the simple ID is often insuficient to understand which app
    the message is refering to, so when possible, we should always print the
    unique ID.

 plugins/flatpak/gs-flatpak.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 3360ee2b..2397f1b3 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -1702,7 +1702,7 @@ gs_flatpak_refine_app_state_unlocked (GsFlatpak *self,
        }
        if (ref != NULL) {
                g_debug ("marking %s as installed with flatpak",
-                        gs_app_get_id (app));
+                        gs_app_get_unique_id (app));
                gs_flatpak_set_metadata_installed (self, app, ref);
                if (gs_app_get_state (app) == AS_APP_STATE_UNKNOWN)
                        gs_app_set_state (app, AS_APP_STATE_INSTALLED);
@@ -1724,12 +1724,12 @@ gs_flatpak_refine_app_state_unlocked (GsFlatpak *self,
                        if (flatpak_remote_get_disabled (xremote)) {
                                g_debug ("%s is available with flatpak "
                                         "but %s is disabled",
-                                        gs_app_get_id (app),
+                                        gs_app_get_unique_id (app),
                                         flatpak_remote_get_name (xremote));
                                gs_app_set_state (app, AS_APP_STATE_UNAVAILABLE);
                        } else {
                                g_debug ("marking %s as available with flatpak",
-                                        gs_app_get_id (app));
+                                        gs_app_get_unique_id (app));
                                gs_app_set_state (app, AS_APP_STATE_AVAILABLE);
                        }
                } else {
@@ -2030,7 +2030,7 @@ gs_plugin_refine_item_size (GsFlatpak *self,
                        return FALSE;
                if (gs_app_get_state (app_runtime) == AS_APP_STATE_INSTALLED) {
                        g_debug ("runtime %s is already installed, so not adding size",
-                                gs_app_get_id (app_runtime));
+                                gs_app_get_unique_id (app_runtime));
                } else {
                        if (!gs_plugin_refine_item_size (self,
                                                         app_runtime,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]