From 59844d8e59d7d9d6b6629e6e1a951c60e0c37d6a Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 11 Mar 2016 19:22:20 -0800 Subject: [PATCH] GUAC-236: Reset log level back to INFO. Define default elsewhere. --- src/guacenc/guacenc.h | 7 +++++++ src/guacenc/log.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/guacenc/guacenc.h b/src/guacenc/guacenc.h index 15f01553..a462f910 100644 --- a/src/guacenc/guacenc.h +++ b/src/guacenc/guacenc.h @@ -25,6 +25,8 @@ #include "config.h" +#include + /** * The name of the codec to use by default, if no other codec is specified on * the command line. This name is dictated by ffmpeg / libavcodec. @@ -58,5 +60,10 @@ */ #define GUACENC_DEFAULT_BITRATE 2000000 +/** + * The default log level below which no messages should be logged. + */ +#define GUACENC_DEFAULT_LOG_LEVEL GUAC_LOG_INFO + #endif diff --git a/src/guacenc/log.c b/src/guacenc/log.c index ba81314f..221c743c 100644 --- a/src/guacenc/log.c +++ b/src/guacenc/log.c @@ -21,6 +21,7 @@ */ #include "config.h" +#include "guacenc.h" #include "log.h" #include @@ -29,7 +30,7 @@ #include #include -int guacenc_log_level = GUAC_LOG_DEBUG; +int guacenc_log_level = GUACENC_DEFAULT_LOG_LEVEL; void vguacenc_log(guac_client_log_level level, const char* format, va_list args) {