Skip to content

Commit

Permalink
fix: use ctx.coreLogger to record schedule log (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-horse authored and popomore committed Nov 20, 2017
1 parent c8e8c3e commit 9ff3974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = app => {
.then(success => {
const rt = Date.now() - start;
const status = success ? 'succeed' : 'failed';
app.coreLogger.info(`[egg-schedule] ${key} excute ${status}, used ${rt}ms`);
ctx.coreLogger.info(`[egg-schedule] ${key} excute ${status}, used ${rt}ms`);
});
});
};

0 comments on commit 9ff3974

Please sign in to comment.