Skip to content

Commit

Permalink
use winston.error, #219
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 30, 2024
1 parent 5bc5346 commit cddb0f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/grunt/tasks/ct-node-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ winston.info( `Config: ${JSON.stringify( options )}` );
while ( true ) {
const success = await runNextTest( options );
if ( !success ) {
winston.info( 'running test unsuccessful, waiting a few seconds to run next test' );
winston.error( 'running test unsuccessful, waiting a few seconds to run next test' );
await sleep( 5000 );
}
}
Expand Down
4 changes: 2 additions & 2 deletions js/node-client/runNextTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = async function( options ) {
}
}

winston.info( 'FAILED TO RUN TEST' );
testInfo && winston.info( await sendTestResult( `Tried to run ${attemptCount} times, never completed, failure: ${lastFailure}`, testInfo, false, options ) );
winston.error( 'FAILED TO RUN TEST' );
testInfo && winston.error( await sendTestResult( `Tried to run ${attemptCount} times, never completed, failure: ${lastFailure}`, testInfo, false, options ) );
return false;
};

0 comments on commit cddb0f3

Please sign in to comment.