egk-tool: fixed verbose logging

This commit is contained in:
Frank Morgner 2019-03-20 20:54:11 +01:00
parent fe95520e3e
commit 159821497c
1 changed files with 5 additions and 0 deletions

View File

@ -164,6 +164,11 @@ main (int argc, char **argv)
exit(1);
}
if (cmdline.verbose_given > 1) {
ctx->debug = cmdline.verbose_given;
sc_ctx_log_to_file(ctx, "stderr");
}
r = util_connect_card_ex(ctx, &card, cmdline.reader_arg, 0, 0, cmdline.verbose_given);
if (r)
goto err;