diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-04 09:00:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-04 09:00:22 +0300 |
commit | c7cfee04c4dd9dcafebe1659d7f7cf1ffd7ff14e (patch) | |
tree | fcea3d03c5b4d8703141932e4157a016fe009a21 /source | |
parent | f3c5b0394f095bb017c19c5a945c8e7714205bf2 (diff) |
Logging: setting log level wasn't working
Diffstat (limited to 'source')
-rw-r--r-- | source/creator/creator_args.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c index 1baae1864bf..675f2621942 100644 --- a/source/creator/creator_args.c +++ b/source/creator/creator_args.c @@ -725,8 +725,11 @@ static int arg_handle_log_level_set(int argc, const char **argv, void *UNUSED(da if (!parse_int_clamp(argv[1], NULL, -1, INT_MAX, &G.log.level, &err_msg)) { printf("\nError: %s '%s %s'.\n", err_msg, arg_id, argv[1]); } - if (G.log.level == -1) { - G.log.level = INT_MAX; + else { + if (G.log.level == -1) { + G.log.level = INT_MAX; + } + CLG_level_set(G.log.level); } return 1; } |