Skip to content

Commit

Permalink
suppress log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
howking committed Sep 16, 2017
1 parent b7ab173 commit c5ba4ec
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion firebase-storage-behavior.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@
forceUnique: {
type: Boolean,
value: false
},

/**
* When true, will perform detailed logging.
*/
log: {
type: Boolean,
value: false
}
},

Expand Down Expand Up @@ -88,7 +96,17 @@
return storage.ref(path);
},

__pathChanged: function(path) {}
__pathChanged: function(path) {},

/**
* A wrapper around `console.log`.
*/
_log: function() {
if (this.log) {
console.log.apply(console, arguments);
}
}

};

/** @polymerBehavior */
Expand Down

0 comments on commit c5ba4ec

Please sign in to comment.