From a9db471e346fcfe0271ac91f7ec65ae32fb4adcc Mon Sep 17 00:00:00 2001 From: Amir Jafarian Date: Mon, 17 Oct 2016 09:57:16 -0400 Subject: [PATCH] Make the examples more clear --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d604c6f..c69baae 100644 --- a/README.md +++ b/README.md @@ -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, } } }