diff --git a/source/dub/commandline.d b/source/dub/commandline.d index ec445b7..1736336 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -1023,7 +1023,7 @@ // disable all log output to stdout and use "writeln" to output the JSON description auto ll = getLogLevel(); - setLogLevel(LogLevel.warn); + setLogLevel(max(ll, LogLevel.warn)); scope (exit) setLogLevel(ll); string package_name;