log file path

pull/531/head
Frostebite 2023-05-13 20:25:26 +01:00
parent 6d7934f149
commit 1a5b953c86
3 changed files with 7 additions and 1 deletions

3
dist/index.js generated vendored
View File

@ -4464,6 +4464,9 @@ class RemoteClientLogger {
} }
static log(message) { static log(message) {
const finalMessage = `[Client] ${message}`; const finalMessage = `[Client] ${message}`;
if (!node_fs_1.default.existsSync(cloud_runner_folders_1.CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute)) {
node_fs_1.default.mkdirSync(cloud_runner_folders_1.CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute);
}
if (!node_fs_1.default.existsSync(this.LogFilePath)) { if (!node_fs_1.default.existsSync(this.LogFilePath)) {
node_fs_1.default.writeFileSync(this.LogFilePath, ``); node_fs_1.default.writeFileSync(this.LogFilePath, ``);
} }

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

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