diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-03-13 12:48:49 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2009-03-13 12:48:49 +0000 |
commit | 831988747f7ed76a319c272eb3ae442001aff81d (patch) | |
tree | 4ca585b4ec83189823d63146bc3fd5a6e39a752d | |
parent | a26a33812b5d6d38f8903b605a3e28c774273100 (diff) | |
download | gvfs-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | daemon/daemon-main.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -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) |