Re-enable verbose mode, add VERBOSE envvar support

This commit is contained in:
Stéphane Lesimple
2025-04-14 21:01:18 +02:00
parent 061026af8a
commit 0b5b9c9f9e
3 changed files with 2 additions and 9 deletions

View File

@@ -28,13 +28,6 @@
#include "inlined-icons.h"
#endif
#if 0
#define Verbose g_printf
#else
#define Verbose(format, ...)
#endif
#ifdef SYS_MINGW
#include <windows.h>

View File

@@ -975,7 +975,7 @@ int main(int argc, char *argv[])
PrintCLI(_(" -m, --method x - list/select error correction methods (default: RS01)\n"));
PrintCLI(_(" -n, --redundancy n%% - error correction data redundancy\n"
" allowed values depend on codec (see manual)\n"));
PrintCLI(_(" -v, --verbose - more diagnostic messages\n"));
PrintCLI(_(" -v, --verbose - more logs, set env VERBOSE=1 for pre-options parsing logs\n"));
PrintCLI(_(" -x, --threads n - use n threads for en-/decoding (if supported by codec)\n"));
PrintCLI(_(" --adaptive-read - use optimized strategy for reading damaged media\n"));
PrintCLI(_(" --auto-suffix - automatically add .iso and .ecc file suffixes\n"));

View File

@@ -411,7 +411,7 @@ void Verbose(char *format, ...)
va_end(argp);
}
if(!Closure->verbose)
if(!Closure->verbose && !g_getenv("VERBOSE"))
return;
va_start(argp, format);