Skip to content

Commit

Permalink
Be defensive about silly log level
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulmillais committed Apr 28, 2016
1 parent b283c87 commit 089c2d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resource.js
Expand Up @@ -31,8 +31,8 @@ function Resource(options, schema) {
this.consumerkey = options.consumerkey;
this.consumersecret = options.consumersecret;

this.logger.silly('Creating constructor for resource: ' +
this.resourceName);
this.logger.silly && this.logger.silly(
'Creating constructor for resource: ' + this.resourceName);

_.each(options.resourceDefinition.actions,
function processAction(action) {
Expand Down

0 comments on commit 089c2d1

Please sign in to comment.