[gnome-software/wip/hughsie/screenshot-last-modified] trivial: Add warning when screenshot download failed



commit 12a553b7b7f23fc37f94f0c06327f90c56fec0a8
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Wed Nov 9 23:08:47 2016 +0100

    trivial: Add warning when screenshot download failed

 src/gs-screenshot-image.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-screenshot-image.c b/src/gs-screenshot-image.c
index 8a810e8..bc7e8fb 100644
--- a/src/gs-screenshot-image.c
+++ b/src/gs-screenshot-image.c
@@ -303,6 +303,9 @@ gs_screenshot_image_complete_cb (SoupSession *session,
                return;
        }
        if (msg->status_code != SOUP_STATUS_OK) {
+                g_warning ("Result of screenshot downloading attempt with "
+                          "status code '%u': %s", msg->status_code,
+                          msg->reason_phrase);
                /* if we're already showing an image, then don't set the error
                 * as having an image (even if outdated) is better */
                if (ssimg->showing_image)


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