[gnome-photos/wip/rishi/online-miners: 1/9] debug: Add a debug flag for online miner related messages




commit cd3328440db0084cc61490d712531b177fc5745f
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Mar 19 20:46:50 2021 +0100

    debug: Add a debug flag for online miner related messages
    
    Logging the communication between the application and the online miners
    will make it easier to debug inter-process problems.
    
    https://gitlab.gnome.org/GNOME/gnome-photos/-/issues/83

 src/photos-debug.c | 1 +
 src/photos-debug.h | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-debug.c b/src/photos-debug.c
index 45cc1ed7..80a9cadc 100644
--- a/src/photos-debug.c
+++ b/src/photos-debug.c
@@ -41,6 +41,7 @@ photos_debug_init (void)
       { "import", PHOTOS_DEBUG_IMPORT },
       { "memory", PHOTOS_DEBUG_MEMORY },
       { "network", PHOTOS_DEBUG_NETWORK },
+      { "online-miner", PHOTOS_DEBUG_ONLINE_MINER },
       { "thumbnailer", PHOTOS_DEBUG_THUMBNAILER },
       { "tracker", PHOTOS_DEBUG_TRACKER }
     };
diff --git a/src/photos-debug.h b/src/photos-debug.h
index 6261a27d..5192808b 100644
--- a/src/photos-debug.h
+++ b/src/photos-debug.h
@@ -32,8 +32,9 @@ typedef enum
   PHOTOS_DEBUG_IMPORT     = 1 << 3,
   PHOTOS_DEBUG_MEMORY     = 1 << 4,
   PHOTOS_DEBUG_NETWORK    = 1 << 5,
-  PHOTOS_DEBUG_THUMBNAILER = 1 << 6,
-  PHOTOS_DEBUG_TRACKER    = 1 << 7
+  PHOTOS_DEBUG_ONLINE_MINER = 1 << 6,
+  PHOTOS_DEBUG_THUMBNAILER = 1 << 7,
+  PHOTOS_DEBUG_TRACKER    = 1 << 8
 } PhotosDebugFlags;
 
 void        photos_debug_init          (void);


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