Skip to content

Commit

Permalink
error json
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGOrtega committed Mar 22, 2021
1 parent f5840aa commit 8466502
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/cml-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ const shutdown = async (opts) => {
const { name, workdir = '' } = opts;
const tf_path = workdir;

console.log('Destroying runner...');
console.log(
JSON.stringify({ level: error ? 'info' : 'error', status: 'terminated' })
);
if (error) console.error(error);

const unregister_runner = async () => {
Expand Down

2 comments on commit 8466502

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

Please sign in to comment.