Skip to content

Commit

Permalink
crun: enable warnings with --debug
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Sep 21, 2020
1 parent bd4d01c commit c90e000
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/crun.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ main (int argc, char **argv)
if (command == NULL)
libcrun_fail_with_error (0, "unknown command %s", argv[first_argument]);

if (arguments.debug)
libcrun_set_verbosity (LIBCRUN_VERBOSITY_WARNING);

ret = command->handler (&arguments, argc - first_argument, argv + first_argument, &err);
if (ret && err)
libcrun_fail_with_error (err->status, "%s", err->msg);
Expand Down

0 comments on commit c90e000

Please sign in to comment.