From 78eb8f61b3032b49685b7c4f6222360a9e91e4cf Mon Sep 17 00:00:00 2001 From: Visytel <59720603+Visytel@users.noreply.github.com> Date: Wed, 12 Feb 2020 06:58:33 +1100 Subject: [PATCH] [core] Reduce log level to DEBUG for binding to events and certain clock messages --- src/switch_cpp.cpp | 2 +- src/switch_event.c | 4 ++-- src/switch_time.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/switch_cpp.cpp b/src/switch_cpp.cpp index d2a7a531f8..eda8b0807b 100644 --- a/src/switch_cpp.cpp +++ b/src/switch_cpp.cpp @@ -83,7 +83,7 @@ SWITCH_DECLARE(int) EventConsumer::bind(const char *event_name, const char *subc if (node_index <= SWITCH_EVENT_ALL && switch_event_bind_removable(__FILE__, event_id, subclass_name, event_handler, this, &enodes[node_index]) == SWITCH_STATUS_SUCCESS) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "bound to %s %s\n", event_name, switch_str_nil(subclass_name)); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "bound to %s %s\n", event_name, switch_str_nil(subclass_name)); node_index++; return 1; } diff --git a/src/switch_event.c b/src/switch_event.c index 8b8d57250c..8bd32ddae1 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -2131,7 +2131,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_unbind_callback(switch_event_callba EVENT_NODES[n->event_id] = n->next; } - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Event Binding deleted for %s:%s\n", n->id, switch_event_name(n->event_id)); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Event Binding deleted for %s:%s\n", n->id, switch_event_name(n->event_id)); FREE(n->subclass_name); FREE(n->id); FREE(n); @@ -2171,7 +2171,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_unbind(switch_event_node_t **node) } else { EVENT_NODES[n->event_id] = n->next; } - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Event Binding deleted for %s:%s\n", n->id, switch_event_name(n->event_id)); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Event Binding deleted for %s:%s\n", n->id, switch_event_name(n->event_id)); FREE(n->subclass_name); FREE(n->id); FREE(n); diff --git a/src/switch_time.c b/src/switch_time.c index 65c4aaf944..5b8f46d1f9 100644 --- a/src/switch_time.c +++ b/src/switch_time.c @@ -1158,11 +1158,11 @@ SWITCH_MODULE_RUNTIME_FUNCTION(softtimer_runtime) if (!MONO || time_sync == runtime.time_sync) { #if defined(HAVE_CLOCK_NANOSLEEP) - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, - "If you see this message many times try setting the param enable-clock-nanosleep to true in switch.conf.xml or consider a nicer machine to run me on. I AM *FREE* afterall.\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, + "If you see this message many times try setting the param enable-clock-nanosleep to true in switch.conf.xml or consider a nicer machine to run me on.\n"); #else - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, - "If you see this message many times consider a nicer machine to run me on. I AM *FREE* afterall.\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, + "If you see this message many times consider a nicer machine to run me on.\n"); #endif } } else {