mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 19:30:04 +01:00
Add --debug-json switch and log level.
The JSON structures should not be printed by default to debug log. This flag introduces new debug level that prints JSON structures and keeps default debug output separate.
This commit is contained in:
@@ -263,7 +263,7 @@ void global_log_callback(int level, const char *msg, void *usrptr)
|
||||
fprintf(stdout, "%s", msg);
|
||||
}
|
||||
|
||||
if (level == CRYPT_LOG_DEBUG)
|
||||
if (level <= CRYPT_LOG_DEBUG)
|
||||
return;
|
||||
|
||||
strncat(global_log, msg, sizeof(global_log) - strlen(global_log));
|
||||
|
||||
Reference in New Issue
Block a user