Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] checking if platform is traced in tracing API
[simgrid.git] / src / instr / instr_interface.c
index 2b03005..6c547ee 100644 (file)
@@ -23,12 +23,9 @@ void TRACE_category_with_color (const char *category, const char *color)
 {
   if (!TRACE_is_active())
     return;
-//
-//  {
-//    //check if hosts have been created
-//    xbt_assert1 (allHostTypes != NULL && xbt_dict_length(allHostTypes) != 0,
-//        "%s must be called after environment creation", __FUNCTION__);
-//  }
+
+  xbt_assert1 (instr_platform_traced(),
+      "%s must be called after environment creation", __FUNCTION__);
 
   //check if category is already created
   char *created = xbt_dict_get_or_null(created_categories, category);