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) {