Skip to content

Commit

Permalink
fix: avoid console log display conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-horse committed Aug 20, 2018
1 parent a3ace2b commit ff2bcbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = app => {
baseDir: 'model',
logging(...args) {
// if benchmark enabled, log used
const used = typeof args[1] === 'number' ? `[${args[1]}ms]` : '';
const used = typeof args[1] === 'number' ? `(${args[1]}ms)` : '';
app.logger.info('[egg-sequelize]%s %s', used, args[0]);
},
host: 'localhost',
Expand Down

0 comments on commit ff2bcbe

Please sign in to comment.