[grilo] core: Default to print warning, critical and error messages only



commit ff6de3017ca8ca17915a933105e8adbf494f5b42
Author: Damien Lespiau <damien lespiau intel com>
Date:   Thu Aug 5 16:50:33 2010 +0100

    core: Default to print warning, critical and error messages only
    
    Grilo is *very* verbose by default. While that's very good to have debug
    messages, printing debug messages by default, especially when it's a
    library, is not a good idea.
    
    This commit makes grilo less verbose by default while keeping the option
    to print debug messages through the GRL_LOG environment variable.
    
    Signed-off-by: Iago Toral Quiroga <itoral igalia com>

 src/grilo.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/grilo.c b/src/grilo.c
index 9c23cf3..b6ff3de 100644
--- a/src/grilo.c
+++ b/src/grilo.c
@@ -59,6 +59,9 @@ grl_init (gint *argc,
     g_error ("GModule not supported in this system");
   }
 
+  /* Setup default log verbosity */
+  grl_log_init ("*:warning");
+
   /* Register default metadata keys */
   registry = grl_plugin_registry_get_default ();
   grl_metadata_key_setup_system_keys (registry);



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