Skip to content

Commit f5afa63

Browse files
committed
Use console.log instead of console.debug
In the browser, `console.debug` does not output anything by default. From MDN (https://developer.mozilla.org/en-US/docs/Web/API/Console): "Starting with Chromium 58 this method only appears in Chromium browser consoles when level "Verbose" is selected."
1 parent 5c7c61d commit f5afa63

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/browser.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,11 @@ function formatArgs(args) {
169169
}
170170

171171
/**
172-
* Invokes `console.debug()` when available.
173-
* No-op when `console.debug` is not a "function".
174-
* If `console.debug` is not available, falls back
175-
* to `console.log`.
172+
* Invokes `console.log` if available or no-op
176173
*
177174
* @api public
178175
*/
179-
exports.log = console.debug || console.log || (() => {});
176+
exports.log = console.log || (() => {});
180177

181178
/**
182179
* Save `namespaces`.

0 commit comments

Comments
 (0)