Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
allowing the user to set the three tracing masks
[simgrid.git] / src / simix / smx_global.c
index d747459..7df72d6 100644 (file)
@@ -318,10 +318,10 @@ double SIMIX_solve(xbt_fifo_t actions_done, xbt_fifo_t actions_failed)
   int actions_on_system = 0;
 
   SIMIX_process_empty_trash();
-  if (xbt_swag_size(simix_global->process_to_run) && (elapsed_time > 0)) {
+  if (XBT_LOG_ISENABLED(simix_kernel,xbt_log_priority_debug) &&
+      xbt_swag_size(simix_global->process_to_run) && (elapsed_time > 0)) {
     DEBUG0("**************************************************");
   }
-  DEBUG1("%d processes in the to_run list",xbt_swag_size(simix_global->process_to_run));
 
   while ((process = xbt_swag_extract(simix_global->process_to_run))) {
     DEBUG2("Scheduling %s on %s", process->name, process->smx_host->name);