[shotwell] Enable GExiv2 GLib logging handler



commit 379ea72c323f7aa84383991075cc492cc0e3833e
Author: Jens Georg <mail jensge org>
Date:   Mon Mar 13 19:03:11 2017 +0100

    Enable GExiv2 GLib logging handler
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/main.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/main.vala b/src/main.vala
index d65421b..0755f62 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -322,6 +322,11 @@ void main(string[] args) {
     // parser is initialized in a thread-safe fashion; please see 
     // http://redmine.yorba.org/issues/4120 for details.
     GExiv2.initialize();
+    GExiv2.log_use_glib_logging();
+
+    // Set GExiv2 log level to DEBUG, filtering will be done through Shotwell
+    // logging mechanisms
+    GExiv2.log_set_level(GExiv2.LogLevel.DEBUG);
 
     // following the GIO programming guidelines at http://developer.gnome.org/gio/2.26/ch03.html,
     // set the GSETTINGS_SCHEMA_DIR environment variable to allow us to load GSettings schemas from 


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