From: Arnaud Giersch Date: Thu, 29 Mar 2012 15:35:04 +0000 (+0200) Subject: Connect categories before parsing the command line. X-Git-Tag: v3_7~147 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5778e4f6f4ccdceb45468377ff019fc97796360c?ds=sidebyside Connect categories before parsing the command line. --- diff --git a/src/xbt/log.c b/src/xbt/log.c index d2684593ce..eb1f4f7fe6 100644 --- a/src/xbt/log.c +++ b/src/xbt/log.c @@ -719,6 +719,8 @@ void xbt_log_init(int *argc, char **argv) // _XBT_LOGV(log).threshold = xbt_log_priority_debug; /* uncomment to set the LOG category to debug directly */ + xbt_log_connect_categories(); + /* Set logs and init log submodule */ for (j = i = 1; i < *argc; i++) { if (!strncmp(argv[i], "--log=", strlen("--log="))) { @@ -739,8 +741,6 @@ void xbt_log_init(int *argc, char **argv) *argc = j; } - xbt_log_connect_categories(); - if (help_requested) { if (help_requested & 1) xbt_log_help();