Skip to content

Commit b7748da

Browse files
committed
1 parent bd25075 commit b7748da

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/autobahn/lib/log.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@
1313

1414

1515
let debug = function () {};
16-
1716
if ('AUTOBAHN_DEBUG' in global && AUTOBAHN_DEBUG && 'console' in global) {
1817
debug = function () {
1918
console.log.apply(console, arguments);
2019
}
2120
}
2221

23-
let warn = console.warn.bind(console);
22+
let warn = function () {};
23+
if ('console' in global) {
24+
warn = function () {
25+
console.warn.apply(console, arguments);
26+
}
27+
}
2428

2529
exports.debug = debug;
2630
exports.warn = warn;

0 commit comments

Comments
 (0)