]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] Reduce log level to DEBUG for binding to events and certain clock messages
authorVisytel <59720603+Visytel@users.noreply.github.com>
Tue, 11 Feb 2020 19:58:33 +0000 (06:58 +1100)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2020 19:58:33 +0000 (23:58 +0400)
src/switch_cpp.cpp
src/switch_event.c
src/switch_time.c

index d2a7a531f8574ad4ce6be8fc0b85dc0e7feca73f..eda8b0807b271ed9abe5fb83e78c7f1c8523f215 100644 (file)
@@ -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;
        }
index 8b8d57250ca7cd054406636c18dff5d61c90fe46..8bd32ddae11f223b747aadeac33d06ebd87d6201 100644 (file)
@@ -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);
index 65c4aaf9440955c0c3a3cbca81b2de3405771a1c..5b8f46d1f91c53adb4aa3c236c4f781bfaf87417 100644 (file)
@@ -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 {