hashed logs
parent
4225feb1b3
commit
174bda8060
|
|
@ -4615,11 +4615,7 @@ class RemoteClientLogger {
|
||||||
}
|
}
|
||||||
cloud_runner_logger_1.default.log(`Collected Logs`);
|
cloud_runner_logger_1.default.log(`Collected Logs`);
|
||||||
let hashedLogs = node_fs_1.default.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
let hashedLogs = node_fs_1.default.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
||||||
// create hashed version of logs using md5sum
|
|
||||||
const startPath = process.cwd();
|
|
||||||
process.chdir('/home');
|
|
||||||
hashedLogs = await await cloud_runner_system_1.CloudRunnerSystem.Run(`md5sum ${RemoteClientLogger.LogFilePath}`);
|
hashedLogs = await await cloud_runner_system_1.CloudRunnerSystem.Run(`md5sum ${RemoteClientLogger.LogFilePath}`);
|
||||||
process.chdir(startPath);
|
|
||||||
cloud_runner_logger_1.default.log(`LOGHASH: ${hashedLogs}`);
|
cloud_runner_logger_1.default.log(`LOGHASH: ${hashedLogs}`);
|
||||||
const logs = node_fs_1.default.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
const logs = node_fs_1.default.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
||||||
cloud_runner_logger_1.default.log(logs);
|
cloud_runner_logger_1.default.log(logs);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -41,11 +41,7 @@ export class RemoteClientLogger {
|
||||||
CloudRunnerLogger.log(`Collected Logs`);
|
CloudRunnerLogger.log(`Collected Logs`);
|
||||||
let hashedLogs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
let hashedLogs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
||||||
|
|
||||||
// create hashed version of logs using md5sum
|
|
||||||
const startPath = process.cwd();
|
|
||||||
process.chdir('/home');
|
|
||||||
hashedLogs = await await CloudRunnerSystem.Run(`md5sum ${RemoteClientLogger.LogFilePath}`);
|
hashedLogs = await await CloudRunnerSystem.Run(`md5sum ${RemoteClientLogger.LogFilePath}`);
|
||||||
process.chdir(startPath);
|
|
||||||
|
|
||||||
CloudRunnerLogger.log(`LOGHASH: ${hashedLogs}`);
|
CloudRunnerLogger.log(`LOGHASH: ${hashedLogs}`);
|
||||||
const logs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
const logs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue