check missing log file
parent
499ad8784a
commit
c6b0f25f8d
|
|
@ -4625,6 +4625,10 @@ class RemoteClientLogger {
|
||||||
// check for log file not existing
|
// check for log file not existing
|
||||||
if (!node_fs_1.default.existsSync(RemoteClientLogger.LogFilePath)) {
|
if (!node_fs_1.default.existsSync(RemoteClientLogger.LogFilePath)) {
|
||||||
cloud_runner_logger_1.default.log(`Log file does not exist`);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
let hashedLogs = node_fs_1.default.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
let hashedLogs = node_fs_1.default.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
|
@ -44,6 +44,11 @@ export class RemoteClientLogger {
|
||||||
if (!fs.existsSync(RemoteClientLogger.LogFilePath)) {
|
if (!fs.existsSync(RemoteClientLogger.LogFilePath)) {
|
||||||
CloudRunnerLogger.log(`Log file does not exist`);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue