Skip to content

Commit

Permalink
Fix: log unhandledRejection when set log_unhandled_promise config
Browse files Browse the repository at this point in the history
  • Loading branch information
welefen committed Feb 28, 2016
1 parent 9dde4d9 commit fa8859a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ export default class {
}
});
process.on('unhandledRejection', err => {
//think.log(err);
if(think.config('log_unhandled_promise')){
think.log(err);
}
});
}
/**
Expand Down

0 comments on commit fa8859a

Please sign in to comment.