Commit d19302fb authored by Laurent THOMAS's avatar Laurent THOMAS

revert last change

parent 91497ece
...@@ -132,17 +132,17 @@ extern "C" { ...@@ -132,17 +132,17 @@ extern "C" {
int message_id = message->ittiMsgHeader.messageId; int message_id = message->ittiMsgHeader.messageId;
size_t s=t->message_queue.size(); size_t s=t->message_queue.size();
if (s > t->last_log_size * 1.1) {
// to reduce the number of logs, we give a message each increase of 10% // to reduce the number of logs, we give a message each increase of 10%
if (s > t->admin.queue_size) if (s > t->last_log_size * 1.1 && s > t->admin.queue_size) {
LOG_E(TMR, "Queue for %s task contains %ld messages\n", itti_get_task_name(destination_task_id), s); LOG_E(TMR, "Queue for %s task contains %ld messages\n", itti_get_task_name(destination_task_id), s);
t->last_log_size = s;
if (s > t->admin.queue_size / 10)
LOG_I(ITTI, } else if (s > t->last_log_size * 1.1 && s > t->admin.queue_size / 10) {
"Queue for %s task size: %ld (last message %s)\n", LOG_I(ITTI,
itti_get_task_name(destination_task_id), "Queue for %s task size: %ld (last message %s)\n",
s + 1, itti_get_task_name(destination_task_id),
ITTI_MSG_NAME(message)); s + 1,
ITTI_MSG_NAME(message));
t->last_log_size = s; t->last_log_size = s;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment