Make the examples more clear

This commit is contained in:
Amir Jafarian 2016-10-17 09:57:16 -04:00
parent 89d0f6b7dc
commit a9db471e34
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,
}
}
}