log file path

This commit is contained in:
Frostebite 2023-05-13 20:25:26 +01:00
parent 6d7934f149
commit 1a5b953c86
3 changed files with 3 additions and 0 deletions

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

View File

@ -10,6 +10,9 @@ export class RemoteClientLogger {
public static log(message: string) {
const finalMessage = `[Client] ${message}`;
if (!fs.existsSync(CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute)) {
fs.mkdirSync(CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute);
}
if (!fs.existsSync(this.LogFilePath)) {
fs.writeFileSync(this.LogFilePath, ``);
}