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