check missing log file

pull/531/head
Frostebite 2023-08-18 19:23:49 +01:00
parent 499ad8784a
commit c6b0f25f8d
5 changed files with 12158 additions and 730 deletions

4
dist/index.js generated vendored
View File

@ -4625,6 +4625,10 @@ class RemoteClientLogger {
// check for log file not existing
if (!node_fs_1.default.existsSync(RemoteClientLogger.LogFilePath)) {
cloud_runner_logger_1.default.log(`Log file does not exist`);
// check if CloudRunner.isCloudRunnerEnvironment is true, log
if (!cloud_runner_1.default.isCloudRunnerEnvironment) {
cloud_runner_logger_1.default.log(`Cloud Runner is not running in a cloud environment, not collecting logs`);
}
return;
}
let hashedLogs = node_fs_1.default.readFileSync(RemoteClientLogger.LogFilePath).toString();

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

11662
package-lock.json generated 100644

File diff suppressed because it is too large Load Diff

View File

@ -44,6 +44,11 @@ export class RemoteClientLogger {
if (!fs.existsSync(RemoteClientLogger.LogFilePath)) {
CloudRunnerLogger.log(`Log file does not exist`);
// check if CloudRunner.isCloudRunnerEnvironment is true, log
if (!CloudRunner.isCloudRunnerEnvironment) {
CloudRunnerLogger.log(`Cloud Runner is not running in a cloud environment, not collecting logs`);
}
return;
}

1215
yarn.lock

File diff suppressed because it is too large Load Diff