]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10032: [mod_amqp] Fix log facilities #resolve
authorAndrey Antipov <p1@nm.ru>
Sat, 11 Feb 2017 13:42:49 +0000 (16:42 +0300)
committerMike Jerris <mike@jerris.com>
Tue, 7 Mar 2017 19:30:32 +0000 (13:30 -0600)
src/mod/event_handlers/mod_amqp/mod_amqp_command.c
src/mod/event_handlers/mod_amqp/mod_amqp_logging.c
src/mod/event_handlers/mod_amqp/mod_amqp_producer.c

index 29760d427129b5127e636f19a01b9d0df49f0d2e..e6c6075c61879108592765917a927ba3224307fa 100644 (file)
@@ -295,8 +295,8 @@ void * SWITCH_THREAD_FUNC mod_amqp_command_thread(switch_thread_t *thread, void
                                break;
                        }
 
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Created command queue %.*s", (int)queueName.len, (char *)queueName.bytes);
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Binding command queue to exchange %s", profile->exchange);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Created command queue %.*s\n", (int)queueName.len, (char *)queueName.bytes);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Binding command queue to exchange %s\n", profile->exchange);
 
                        /* Bind the queue to the exchange */
                        amqp_queue_bind(profile->conn_active->state,                   // state
index da512cef39e4a0949d0b8c555e8c334395324bf4..c49d7a9050d441e098b52f799f08fb2fffb41fde 100644 (file)
@@ -275,7 +275,7 @@ switch_status_t mod_amqp_logging_create(char *name, switch_xml_t cfg)
                goto err;
        }
 
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Profile[%s] Successfully started\n", profile->name);
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Profile[%s] Successfully started\n", profile->name);
        return SWITCH_STATUS_SUCCESS;
 
  err:
index 12ba35a5df86b31839bb4acdb66ce4d654da2d59..5ebb7844d637c6359c12d0f7df2e22727b6e5153 100644 (file)
@@ -264,7 +264,7 @@ switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg)
                                /* Parse new events */
                                profile->event_subscriptions = switch_separate_string(val, ',', argv, (sizeof(argv) / sizeof(argv[0])));
 
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Found %d subscriptions\n", profile->event_subscriptions);
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Found %d subscriptions\n", profile->event_subscriptions);
 
                                for (arg = 0; arg < profile->event_subscriptions; arg++) {
                                        if (switch_name_event(argv[arg], &(profile->event_ids[arg])) != SWITCH_STATUS_SUCCESS) {
@@ -371,7 +371,7 @@ switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg)
                goto err;
        }
 
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Profile[%s] Successfully started\n", profile->name);
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Profile[%s] Successfully started\n", profile->name);
        return SWITCH_STATUS_SUCCESS;
 
  err: