diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-05 17:19:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-05 17:19:43 +0300 |
commit | 3eaf77fdd34bd9517b650cabde3574361bdc8d21 (patch) | |
tree | 5565b616ce36e6716c6f9ebe78ecb42bda078da1 /source/creator/creator_args.c | |
parent | 1c1dc394662965356eee2347d824026cd9d18756 (diff) | |
parent | ad1ea9a427e3543a43ca2589f87f0c94b9be03ca (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/creator/creator_args.c')
-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 3a478d0b9d4..dac22322361 100644 --- a/source/creator/creator_args.c +++ b/source/creator/creator_args.c @@ -713,16 +713,19 @@ static int arg_handle_background_mode_set(int UNUSED(argc), const char **UNUSED( static const char arg_handle_log_level_set_doc[] = "<level>\n" "\n" -"\tSet the logging verbosity level (higher for more details) defaults to 1." +"\tSet the logging verbosity level (higher for more details) defaults to 1, use -1 to log all levels." ; static int arg_handle_log_level_set(int argc, const char **argv, void *UNUSED(data)) { const char *arg_id = "--log-level"; if (argc > 1) { const char *err_msg = NULL; - if (!parse_int_clamp(argv[1], NULL, 0, INT_MAX, &G.log.level, &err_msg)) { + 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; + } return 1; } else { |