diff --git a/src/utils.js b/src/utils.js index e7b9136..4ae5344 100644 --- a/src/utils.js +++ b/src/utils.js @@ -100,7 +100,17 @@ export function onButtonClick(btn, listener) { export function log() { if (window.DEBUG) { - console.log(Date.now(), ...arguments); + const err = new Error(); + console.log( + parseInt( + Date.now() + .toString() + .substr(4), + 10 + ), + ...arguments, + err.stack.split('\n')[2].replace(/\(.*\)/, '') + ); } }