Commit 0ee41e1e authored by Millian Poquet's avatar Millian Poquet

Improved logging configuration

parent 66c7ba11
......@@ -261,6 +261,9 @@ void configure_batsim_logging_output(const MainArguments & main_args)
// Batsim is always set to info, to allow to trace Batsim's input easily
xbt_log_control_set("batsim.thresh:info");
// Simgrid-related log control
xbt_log_control_set("surf_energy.thresh:critical");
}
/**
......
......@@ -26,9 +26,9 @@ void generic_send_message(const std::string & destination_mailbox, IPMessageType
msg_task_t task_to_send = MSG_task_create(NULL, 0, 1e-6, message);
XBT_INFO("message from '%s' to '%s' of type '%s' with data %p",
MSG_process_get_name(MSG_process_self()), destination_mailbox.c_str(),
ipMessageTypeToString(type).c_str(), data);
XBT_DEBUG("message from '%s' to '%s' of type '%s' with data %p",
MSG_process_get_name(MSG_process_self()), destination_mailbox.c_str(),
ipMessageTypeToString(type).c_str(), data);
if (detached)
{
......@@ -39,9 +39,9 @@ void generic_send_message(const std::string & destination_mailbox, IPMessageType
MSG_task_send(task_to_send, destination_mailbox.c_str());
}
XBT_INFO("message from '%s' to '%s' of type '%s' with data %p done",
MSG_process_get_name(MSG_process_self()), destination_mailbox.c_str(),
ipMessageTypeToString(type).c_str(), data);
XBT_DEBUG("message from '%s' to '%s' of type '%s' with data %p done",
MSG_process_get_name(MSG_process_self()), destination_mailbox.c_str(),
ipMessageTypeToString(type).c_str(), data);
}
void send_message(const std::string & destination_mailbox, IPMessageType type, void * data)
......
......@@ -112,7 +112,7 @@ int uds_server_process(int argc, char *argv[])
submitters.erase(message->submitter_name);
nb_submitters_finished++;
XBT_INFO( "A submitted said goodbye. Number of finished submitters: %d", nb_submitters_finished);
XBT_INFO("A submitted said goodbye. Number of finished submitters: %d", nb_submitters_finished);
if (!all_jobs_submitted_and_completed &&
nb_completed_jobs == nb_submitted_jobs &&
......@@ -122,7 +122,7 @@ int uds_server_process(int argc, char *argv[])
XBT_INFO("It seems that all jobs have been submitted and completed!");
send_buffer += "|" + std::to_string(MSG_get_clock()) + ":Z";
XBT_DEBUG( "Message to send to scheduler: %s", send_buffer.c_str());
XBT_DEBUG("Message to send to scheduler: %s", send_buffer.c_str());
}
} break; // end of case SUBMITTER_BYE
......
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