[gvfs] daemon: Enable debugging for the main daemon by GVFS_DEBUG



commit 535f1e6b5d0d66c0361addde01775c04163fb59a
Author: Ondrej Holy <oholy redhat com>
Date:   Tue Jul 12 13:47:54 2016 +0200

    daemon: Enable debugging for the main daemon by GVFS_DEBUG
    
    This is currently more-or-less just a cosmetic issue, because there aren't
    any debug prints in the main daemon, and because other daemons are
    spawned with the same enviroment. However this fixes debugging for the
    proposed admin daemon, because GVFS_DEBUG environment variable is not
    passed in pkexec environment.

 daemon/main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/daemon/main.c b/daemon/main.c
index 210031d..12e3c4d 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -197,6 +197,9 @@ main (int argc, char *argv[])
 
   g_option_context_free (context);
 
+  if (g_getenv ("GVFS_DEBUG"))
+    debugging = TRUE;
+
   gvfs_set_debug (debugging);
 
   if (show_version)


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