mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Enable autoflush for STS logs (#19236)
This commit is contained in:
@@ -105,12 +105,14 @@ export function getCommonLaunchArgsAndCleanupOldLogFiles(logPath: string, fileNa
|
|||||||
launchArgs.push(logFile);
|
launchArgs.push(logFile);
|
||||||
|
|
||||||
console.log(`logFile for ${path.basename(executablePath)} is ${logFile}`);
|
console.log(`logFile for ${path.basename(executablePath)} is ${logFile}`);
|
||||||
console.log(`This process (ui Extenstion Host) is pid: ${process.pid}`);
|
console.log(`This process (ui Extension Host) is pid: ${process.pid}`);
|
||||||
// Delete old log files
|
// Delete old log files
|
||||||
let deletedLogFiles = removeOldLogFiles(logPath, fileName);
|
let deletedLogFiles = removeOldLogFiles(logPath, fileName);
|
||||||
console.log(`Old log files deletion report: ${JSON.stringify(deletedLogFiles)}`);
|
console.log(`Old log files deletion report: ${JSON.stringify(deletedLogFiles)}`);
|
||||||
launchArgs.push('--tracing-level');
|
launchArgs.push('--tracing-level');
|
||||||
launchArgs.push(getConfigTracingLevel());
|
launchArgs.push(getConfigTracingLevel());
|
||||||
|
// Always enable autoflush so that log entries are written immediately to disk, otherwise we can end up with partial logs
|
||||||
|
launchArgs.push('--autoflush-log');
|
||||||
return launchArgs;
|
return launchArgs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user