@@ -256,6 +256,8 @@ int main (int argc, char **argv)
}
else if (options.loglevel >= 0) {
BLog_SetChannelLoglevel(i, options.loglevel);
+ } else {
+ BLog_SetChannelLoglevel(i, DEFAULT_LOGLEVEL);
@@ -32,3 +32,6 @@
// how long to wait after an error before retrying
#define DEFAULT_RETRY_TIME 5000
+
+// default loglevel
+#define DEFAULT_LOGLEVEL BLOG_WARNING