Skip to content

Commit 4b8f953

Browse files
committed
Not set log file if empty
1 parent ca35e6f commit 4b8f953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async function activateServerForFolder(context: ExtensionContext, uri: Uri, fold
175175

176176
const outputChannel: OutputChannel = window.createOutputChannel(langName);
177177

178-
const logFilePath = path.resolve(currentWorkingDir, expandHomeDir(logFile));
178+
const logFilePath = logFile !== '' ? path.resolve(currentWorkingDir, expandHomeDir(logFile)) : undefined;
179179
const logger: Logger = new ExtensionLogger('client', clientLogLevel, outputChannel, logFilePath);
180180
if (logFilePath) {
181181
logger.info(`Writing client log to file ${logFilePath}`);

0 commit comments

Comments
 (0)