[Xfce4-commits] <tumbler:master> Abort on warnings and critical in debug mode.

Nick Schermer noreply at xfce.org
Fri Oct 28 21:46:02 CEST 2011


Updating branch refs/heads/master
         to 3398fcc2ad7c0dd70dc4568c41a0af1bcf3f6ccd (commit)
       from eeefaee4a6cde670fab8f50ed9ef2e69506a29a1 (commit)

commit 3398fcc2ad7c0dd70dc4568c41a0af1bcf3f6ccd
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Oct 28 21:40:17 2011 +0200

    Abort on warnings and critical in debug mode.
    
    Makes it easy to track unref problems.

 tumblerd/main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/tumblerd/main.c b/tumblerd/main.c
index d8e9876..7972345 100644
--- a/tumblerd/main.c
+++ b/tumblerd/main.c
@@ -74,6 +74,11 @@ main (int    argc,
   /* set the program name */
   g_set_prgname (G_LOG_DOMAIN);
 
+#ifdef DEBUG
+  /* if something doesn't work, fix your code instead! */
+  g_log_set_always_fatal (G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING);
+#endif
+
   /* set the application name. Translators: Don't translate "Tumbler". */
   g_set_application_name (_("Tumbler Thumbnailing Service"));
 


More information about the Xfce4-commits mailing list