diff options
Diffstat (limited to 'camel/camel-log.c')
-rw-r--r-- | camel/camel-log.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/camel/camel-log.c b/camel/camel-log.c index a0dd8007b7..1e6a3cdae6 100644 --- a/camel/camel-log.c +++ b/camel/camel-log.c @@ -23,16 +23,16 @@ #include <config.h> #include "camel-log.h" -int camel_debug_level = 10; +int camel_debug_level = CAMEL_LOG_LEVEL_FULL_DEBUG; FILE *camel_log_file_descriptor = NULL; void -camel_log(CamelLogLevel level, const gchar *format, ... ) +camel_log(guint level, const gchar *format, ... ) { va_list args; - if (camel_log_file_descriptor == NULL) - camel_log_file_descriptor = stderr; - + if (camel_log_file_descriptor == NULL) + camel_log_file_descriptor = stdout; + if (level<=camel_debug_level) { va_start(args, format); |