- /** Set logs and init log submodule */
- for (i=1; i<argc; i++) {
- if (!strncmp(argv[i],"--gras-log=",strlen("--gras-log="))) {
- found = 1;
- opt=strchr(argv[i],'=');
- opt++;
- TRYFAIL(gras_log_control_set(opt));
- }
- }
- if (!found && defaultlog) {
- TRYFAIL(gras_log_control_set(defaultlog));
- }
-
- /** init other submodules */
- gras_trp_init();
+ first_run = 0;
+ VERB0("Initialize XBT");
+
+ xbt_log_init(argc,argv,defaultlog);