From 7ac84ca062e3d5d3eb610b253cc6988433485793 Mon Sep 17 00:00:00 2001 From: Raoul Millais Date: Thu, 28 Apr 2016 17:34:10 +0100 Subject: [PATCH] Another check for the silly log level --- lib/resource.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/resource.js b/lib/resource.js index 42bf380..d51912e 100644 --- a/lib/resource.js +++ b/lib/resource.js @@ -82,8 +82,9 @@ Resource.prototype.createAction = function (actionDefinition, isManaged) { ? '2-legged' : actionDefinition.oauth; - this.logger.silly('Creating method: ' + fnName + ' for ' + action + - ' action with ' + httpMethod + ' HTTP verb'); + this.logger.silly && this.logger.silly( + 'Creating method: ' + fnName + ' for ' + action + + ' action with ' + httpMethod + ' HTTP verb'); /*jshint validthis: true */ function invokeAction(requestData, callback) { var self = this;