Merge pull request #27 from strongloop/clear_example

Make the example more clear
This commit is contained in:
Amirali Jafarian 2016-10-18 08:02:42 -04:00 committed by GitHub
commit 613c7209d3
1 changed files with 6 additions and 1 deletions

View File

@ -41,7 +41,10 @@ var app = express();
// setup your routes
// `options` are set to default values. For more info, see `options` below.
// app.use(errorHandler({ /* options, see below */ }));
app.use(errorHandler({debug:true, log:true}));
app.use(errorHandler({
debug: app.get('env') === 'development',
log: true,
}));
app.listen(3000);
```
@ -54,6 +57,8 @@ In LoopBack applications, add the following entry to your
"final:after": {
"strong-error-handler": {
"params": {
"debug": false,
"log": true,
}
}
}