Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Interface revolution: do not try to survive to malloc failure
[simgrid.git] / src / xbt / module.c
index c7b52bb..c2c9f85 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "gras_private.h"
 
-GRAS_LOG_NEW_DEFAULT_SUBCATEGORY(module,GRAS);
+GRAS_LOG_NEW_DEFAULT_SUBCATEGORY(module,gros, "module handling");
 
 extern void gras_log_exit(void);
 static int gras_running_process = 0;
@@ -50,7 +50,7 @@ gras_init_defaultlog(int *argc,char **argv, const char *defaultlog) {
       found = 1;
       opt=strchr(argv[i],'=');
       opt++;
-      TRYFAIL(gras_log_control_set(opt));
+      gras_log_control_set(opt);
       DEBUG1("Did apply '%s' as log setting",opt);
       /*remove this from argv*/
       for (j=i+1; j<*argc; j++) {
@@ -59,11 +59,10 @@ gras_init_defaultlog(int *argc,char **argv, const char *defaultlog) {
       argv[j-1] = NULL;
       (*argc)--;
       i--; /* compensate effect of next loop incrementation */
-      WARN1("argc %d",*argc);
     }
   }
   if (!found && defaultlog) {
-     TRYFAIL(gras_log_control_set(defaultlog));
+     gras_log_control_set(defaultlog);
   }
    
   gras_process_init(); /* calls procdata_init, which calls dynar_new */