From b818a4b551aff1dc64c5354bd23804384fc8ff7e Mon Sep 17 00:00:00 2001 From: Oscar Vadillo Date: Fri, 6 Mar 2020 11:46:59 +0100 Subject: [PATCH 1/2] Reduced log level to info when logger and event handlers are not found --- janus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/janus.c b/janus.c index e0fc9f4d27..0973135d3b 100644 --- a/janus.c +++ b/janus.c @@ -3964,7 +3964,7 @@ gint main(int argc, char *argv[]) dir = opendir(path); if(!dir) { /* Not really fatal, we don't care and go on anyway: loggers are not fundamental */ - JANUS_LOG(LOG_FATAL, "\tCouldn't access logger plugins folder...\n"); + JANUS_LOG(LOG_INFO, "\tCouldn't access logger plugins folder...\n"); } else { /* Any loggers to ignore? */ item = janus_config_get(config, config_loggers, janus_config_type_item, "disable"); @@ -4713,7 +4713,7 @@ gint main(int argc, char *argv[]) dir = opendir(path); if(!dir) { /* Not really fatal, we don't care and go on anyway: event handlers are not fundamental */ - JANUS_LOG(LOG_FATAL, "\tCouldn't access event handler plugins folder...\n"); + JANUS_LOG(LOG_INFO, "\tCouldn't access event handler plugins folder...\n"); } else { item = janus_config_get(config, config_events, janus_config_type_item, "stats_period"); if(item && item->value) { From e2f21a78135c0f21fd0d70e19bf792f23e21106b Mon Sep 17 00:00:00 2001 From: Oscar Vadillo Date: Fri, 6 Mar 2020 12:19:47 +0100 Subject: [PATCH 2/2] Modified LOG_INFO to LOG_WARN --- janus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/janus.c b/janus.c index 0973135d3b..3b271dd70c 100644 --- a/janus.c +++ b/janus.c @@ -3964,7 +3964,7 @@ gint main(int argc, char *argv[]) dir = opendir(path); if(!dir) { /* Not really fatal, we don't care and go on anyway: loggers are not fundamental */ - JANUS_LOG(LOG_INFO, "\tCouldn't access logger plugins folder...\n"); + JANUS_LOG(LOG_WARN, "\tCouldn't access logger plugins folder...\n"); } else { /* Any loggers to ignore? */ item = janus_config_get(config, config_loggers, janus_config_type_item, "disable"); @@ -4713,7 +4713,7 @@ gint main(int argc, char *argv[]) dir = opendir(path); if(!dir) { /* Not really fatal, we don't care and go on anyway: event handlers are not fundamental */ - JANUS_LOG(LOG_INFO, "\tCouldn't access event handler plugins folder...\n"); + JANUS_LOG(LOG_WARN, "\tCouldn't access event handler plugins folder...\n"); } else { item = janus_config_get(config, config_events, janus_config_type_item, "stats_period"); if(item && item->value) {