log file path

pull/531/head
Frostebite 2023-05-14 17:08:06 +01:00
parent 0d7955f2ae
commit 45a1901e23
3 changed files with 3 additions and 5 deletions

3
dist/index.js generated vendored
View File

@ -4457,10 +4457,9 @@ exports.RemoteClientLogger = void 0;
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864)); const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
const node_fs_1 = __importDefault(__nccwpck_require__(87561)); const node_fs_1 = __importDefault(__nccwpck_require__(87561));
const node_path_1 = __importDefault(__nccwpck_require__(49411)); const node_path_1 = __importDefault(__nccwpck_require__(49411));
const cloud_runner_folders_1 = __nccwpck_require__(77795);
class RemoteClientLogger { class RemoteClientLogger {
static get LogFilePath() { static get LogFilePath() {
return node_path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.builderPathAbsolute, `job-log.txt`); return node_path_1.default.join(`/`, `job-log.txt`);
} }
static log(message) { static log(message) {
const finalMessage = `[Client] ${message}`; const finalMessage = `[Client] ${message}`;

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,10 @@
import CloudRunnerLogger from '../services/core/cloud-runner-logger'; import CloudRunnerLogger from '../services/core/cloud-runner-logger';
import fs from 'node:fs'; import fs from 'node:fs';
import path from 'node:path'; import path from 'node:path';
import { CloudRunnerFolders } from '../options/cloud-runner-folders';
export class RemoteClientLogger { export class RemoteClientLogger {
private static get LogFilePath() { private static get LogFilePath() {
return path.join(CloudRunnerFolders.builderPathAbsolute, `job-log.txt`); return path.join(`/`, `job-log.txt`);
} }
public static log(message: string) { public static log(message: string) {