Skip to content

Commit

Permalink
Merge pull request #11 from agiri/patch-1
Browse files Browse the repository at this point in the history
Adds formatted error logging when debug is turned on
  • Loading branch information
mdarnall committed Mar 9, 2016
2 parents 86b21ba + 563c050 commit 0eed21a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ exports.register = function (server, options, next) {
}, function(err, result){

if(err){
if (debug) {
internals.log('error', err.formatted);
}
return internals.error(reply, err);
}

Expand Down

0 comments on commit 0eed21a

Please sign in to comment.