Merge branch 'master' into blender2.8
[blender.git] / source / creator / creator_args.c
index 60f0ae9c54369cdd292a7c3270927a42c3eb44b6..5d49c954522246c10dfe4aa4dc45fc550cabcf7a 100644 (file)
@@ -710,8 +710,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;
        }