From 5778e4f6f4ccdceb45468377ff019fc97796360c Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 29 Mar 2012 17:35:04 +0200 Subject: [PATCH] Connect categories before parsing the command line. --- src/xbt/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.20.1