Skip to content

Commit

Permalink
Fix logging issue in doReport
Browse files Browse the repository at this point in the history
How the heck did I miss this??
  • Loading branch information
pineapplemachine committed Apr 13, 2018
1 parent 7295140 commit 9e279c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions canary.js
Original file line number Diff line number Diff line change
Expand Up @@ -1107,14 +1107,14 @@ class CanaryTest{
// such a file path. Note that file paths are normalized before comparison.
async doReport(options = undefined){
let report = undefined;
try{
// Set a default empty options object when none was specified.
options = options || {};
function log(message){
const log = message => {
if(!options.silent){
return this.getLogFunction()(message);
}
}
};
try{
// Set a default empty options object when none was specified.
options = options || {};
// Indicate that tests are about to be run!
log(`Running tests via Canary...`);
// When "concise" is set, instruct tests to run silently.
Expand Down

0 comments on commit 9e279c1

Please sign in to comment.