log file path

pull/531/head
Frostebite 2023-05-14 01:15:18 +01:00
parent 12764c8f73
commit 4de8ca9d92
3 changed files with 1 additions and 7 deletions

3
dist/index.js generated vendored
View File

@ -4464,9 +4464,6 @@ 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,9 +10,6 @@ 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, ``);
} }