summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-03-13 12:48:49 +0000
committerAlexander Larsson <alexl@src.gnome.org>2009-03-13 12:48:49 +0000
commit831988747f7ed76a319c272eb3ae442001aff81d (patch)
tree4ca585b4ec83189823d63146bc3fd5a6e39a752d
parenta26a33812b5d6d38f8903b605a3e28c774273100 (diff)
downloadgvfs-831988747f7ed76a319c272eb3ae442001aff81d.tar.gz
Enable debug output if GVFS_DEBUG is set in the environment.
2009-03-13 Alexander Larsson <alexl@redhat.com> * daemon/daemon-main.c (daemon_parse_args): Enable debug output if GVFS_DEBUG is set in the environment. svn path=/trunk/; revision=2321
-rw-r--r--ChangeLog5
-rw-r--r--daemon/daemon-main.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9d2636e6..8632cc3f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-13 Alexander Larsson <alexl@redhat.com>
+
+ * daemon/daemon-main.c (daemon_parse_args):
+ Enable debug output if GVFS_DEBUG is set in the environment.
+
2009-03-12 Alexander Larsson <alexl@redhat.com>
* daemon/gvfsbackendgphoto2.c:
diff --git a/daemon/daemon-main.c b/daemon/daemon-main.c
index c314911f..22cebe60 100644
--- a/daemon/daemon-main.c
+++ b/daemon/daemon-main.c
@@ -142,6 +142,10 @@ daemon_parse_args (int argc, char *argv[], const char *default_type)
argc--;
argv++;
}
+ else if (g_getenv ("GVFS_DEBUG"))
+ {
+ print_debug = TRUE;
+ }
mount_spec = NULL;
if (argc > 1 && strcmp (argv[1], "--spawner") == 0)