Not being able to read the public key is not necessarily an error. Emit a message based on log level. Signed-off-by: Mimi Zohar <zohar@xxxxxxxxxxxxx> --- src/libimaevm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libimaevm.c b/src/libimaevm.c index b8d576969aa4..16e07e82b9e3 100644 --- a/src/libimaevm.c +++ b/src/libimaevm.c @@ -323,7 +323,8 @@ EVP_PKEY *read_pub_pkey(const char *keyfile, int x509) fp = fopen(keyfile, "r"); if (!fp) { - log_err("Failed to open keyfile: %s\n", keyfile); + if (imaevm_params.verbose > LOG_INFO) + log_info("Failed to open keyfile: %s\n", keyfile); return NULL; } -- 2.7.5