testresolver: set log level with TESTRESOLVER_LOG_LEVEL. For #146897

This commit is contained in:
Martin Aeschlimann
2022-04-08 10:41:24 +02:00
parent b6fc6eae3b
commit cc47c60e96
2 changed files with 7 additions and 1 deletions
@@ -90,7 +90,10 @@ export function activate(context: vscode.ExtensionContext) {
if (logsDir) {
commandArgs.push('--logsPath', logsDir);
}
const logLevel = process.env['TESTRESOLVER_LOG_LEVEL'];
if (logLevel) {
commandArgs.push('--log', logLevel);
}
outputChannel.appendLine(`Using data folder at ${remoteDataDir}`);
commandArgs.push('--server-data-dir', remoteDataDir);