diff --git a/packages/generator-feathers/generators/app/templates/src/hooks/log.js b/packages/generator-feathers/generators/app/templates/src/hooks/log.js index e7344cc4ec..37e9403b46 100644 --- a/packages/generator-feathers/generators/app/templates/src/hooks/log.js +++ b/packages/generator-feathers/generators/app/templates/src/hooks/log.js @@ -17,7 +17,7 @@ module.exports = function () { logger.debug('Hook Context', util.inspect(context, {colors: false})); } - if(context.error) { + if(context.error && !context.result) { logger.error(context.error.stack); } };