Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit c5ba4ec

Browse files
committed
suppress log messages
1 parent b7ab173 commit c5ba4ec

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

firebase-storage-behavior.html

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@
5050
forceUnique: {
5151
type: Boolean,
5252
value: false
53+
},
54+
55+
/**
56+
* When true, will perform detailed logging.
57+
*/
58+
log: {
59+
type: Boolean,
60+
value: false
5361
}
5462
},
5563

@@ -88,7 +96,17 @@
8896
return storage.ref(path);
8997
},
9098

91-
__pathChanged: function(path) {}
99+
__pathChanged: function(path) {},
100+
101+
/**
102+
* A wrapper around `console.log`.
103+
*/
104+
_log: function() {
105+
if (this.log) {
106+
console.log.apply(console, arguments);
107+
}
108+
}
109+
92110
};
93111

94112
/** @polymerBehavior */

0 commit comments

Comments
 (0)