Skip to content

Commit

Permalink
hashed logging k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
frostebite committed Sep 19, 2023
1 parent cc57add commit df456df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
6 changes: 1 addition & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions src/model/cloud-runner/remote-client/remote-client-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import fs from 'node:fs';
import path from 'node:path';
import CloudRunner from '../cloud-runner';
import CloudRunnerOptions from '../options/cloud-runner-options';
import { CloudRunnerSystem } from '../services/core/cloud-runner-system';
import { CloudRunnerFolders } from '../options/cloud-runner-folders';
const md5 = require('md5');

export class RemoteClientLogger {
Expand Down Expand Up @@ -56,9 +54,7 @@ export class RemoteClientLogger {

let hashedLogs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();

process.chdir('/home/');
hashedLogs = await CloudRunnerSystem.Run(`md5sum job-log.txt`);
process.chdir(CloudRunnerFolders.projectPathAbsolute);
hashedLogs = md5(hashedLogs);

for (let index = 0; index < 3; index++) {
CloudRunnerLogger.log(`LOGHASH: ${hashedLogs}`);
Expand Down

0 comments on commit df456df

Please sign in to comment.