[gnome-online-miners/sam/help-and-debug: 4/4] facebook: Log how many albums were found, as a debug message



commit 9888c7fd5950729c3ca9981fd2519a25fe2537c5
Author: Sam Thursfield <ssssam gmail com>
Date:   Sun Sep 4 01:15:47 2016 +0100

    facebook: Log how many albums were found, as a debug message
    
    This helps when debugging cases where no photos are fetched at all.
    
    The message is only shown if G_MESSAGES_DEBUG=all is set in the environment.

 src/gom-facebook-miner.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gom-facebook-miner.c b/src/gom-facebook-miner.c
index 3c90b80..10715a8 100644
--- a/src/gom-facebook-miner.c
+++ b/src/gom-facebook-miner.c
@@ -350,6 +350,7 @@ query_facebook (GomAccountMinerJob *job,
   if (local_error != NULL)
     goto out;
 
+  g_debug ("Found %i Facebook photo albums for user %s", g_list_length (albums), me_name);
   for (l = albums; l != NULL; l = l->next)
     {
       GFBGraphAlbum *album = GFBGRAPH_ALBUM (l->data);


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