提交 247131a1 authored 作者: Andrey Antipov's avatar Andrey Antipov 提交者: Mike Jerris

FS-10032: [mod_amqp] Fix log facilities #resolve

上级 8ff79b51
...@@ -295,8 +295,8 @@ void * SWITCH_THREAD_FUNC mod_amqp_command_thread(switch_thread_t *thread, void ...@@ -295,8 +295,8 @@ void * SWITCH_THREAD_FUNC mod_amqp_command_thread(switch_thread_t *thread, void
break; 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_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", profile->exchange); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Binding command queue to exchange %s\n", profile->exchange);
/* Bind the queue to the exchange */ /* Bind the queue to the exchange */
amqp_queue_bind(profile->conn_active->state, // state amqp_queue_bind(profile->conn_active->state, // state
......
...@@ -275,7 +275,7 @@ switch_status_t mod_amqp_logging_create(char *name, switch_xml_t cfg) ...@@ -275,7 +275,7 @@ switch_status_t mod_amqp_logging_create(char *name, switch_xml_t cfg)
goto err; 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; return SWITCH_STATUS_SUCCESS;
err: err:
......
...@@ -264,7 +264,7 @@ switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg) ...@@ -264,7 +264,7 @@ switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg)
/* Parse new events */ /* Parse new events */
profile->event_subscriptions = switch_separate_string(val, ',', argv, (sizeof(argv) / sizeof(argv[0]))); 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++) { for (arg = 0; arg < profile->event_subscriptions; arg++) {
if (switch_name_event(argv[arg], &(profile->event_ids[arg])) != SWITCH_STATUS_SUCCESS) { 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) ...@@ -371,7 +371,7 @@ switch_status_t mod_amqp_producer_create(char *name, switch_xml_t cfg)
goto err; 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; return SWITCH_STATUS_SUCCESS;
err: err:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论