Clean up whitespace, and remove surplus log line at crit level. #NOWIR

This commit is contained in:
William King 2016-02-01 17:58:12 -08:00
parent 60bd4bec38
commit 1cb7a5ba43
1 changed files with 50 additions and 54 deletions

View File

@ -78,7 +78,6 @@ switch_status_t mod_amqp_logging_recv(const switch_log_node_t *node, switch_log_
cJSON_AddItemToObject(body, "level", cJSON_CreateString(switch_log_level2str(node->level)));
cJSON_AddItemToObject(body, "timestamp", cJSON_CreateString((const char *)date));
cJSON_AddItemToObject(body, "timestamp_epoch", cJSON_CreateNumber((double) node->timestamp / 1000000));
cJSON_AddItemToObject(body, "content", cJSON_CreateString(node->content ));
json = cJSON_Print(body);
@ -93,8 +92,6 @@ switch_status_t mod_amqp_logging_recv(const switch_log_node_t *node, switch_log_
snprintf(msg->routing_key, sizeof(msg->routing_key), "%s.%s.%s.%s", switch_core_get_hostname(), node->userdata, switch_log_level2str(node->level), file);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "AMQP Created message with routing key[%s]\n", msg->routing_key);
if (switch_queue_trypush(logging->send_queue, msg) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "AMQP logging message queue full. Messages will be dropped!\n");
return SWITCH_STATUS_SUCCESS;
@ -105,7 +102,6 @@ switch_status_t mod_amqp_logging_recv(const switch_log_node_t *node, switch_log_
switch_safe_free(json);
return SWITCH_STATUS_SUCCESS;
}
switch_status_t mod_amqp_logging_destroy(mod_amqp_logging_profile_t **prof)