Make quiet_log decision logic more obvious.

This commit is contained in:
Ondrej Kozina
2020-07-07 18:24:36 +02:00
committed by Milan Broz
parent c2371f95c6
commit 07f9248448

View File

@@ -125,7 +125,7 @@ void tool_log(int level, const char *msg, void *usrptr __attribute__((unused)))
void quiet_log(int level, const char *msg, void *usrptr)
{
if (!opt_verbose && (level == CRYPT_LOG_ERROR || level == CRYPT_LOG_NORMAL))
level = CRYPT_LOG_VERBOSE;
return;
tool_log(level, msg, usrptr);
}