hashed logs

This commit is contained in:
Frostebite 2023-08-14 19:54:01 +01:00
parent 4225feb1b3
commit 174bda8060
3 changed files with 0 additions and 4 deletions

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

View File

@ -41,11 +41,7 @@ export class RemoteClientLogger {
CloudRunnerLogger.log(`Collected Logs`);
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}`);
process.chdir(startPath);
CloudRunnerLogger.log(`LOGHASH: ${hashedLogs}`);
const logs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();