diff options
author | Devaev Maxim <[email protected]> | 2018-07-31 15:32:18 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-07-31 15:32:18 +0300 |
commit | 35ec51ac065351089e5cf992dc1bea6ba87f60e1 (patch) | |
tree | c2c542f6ef3526fc6557c0179857189d47d5e5b0 /kvmd | |
parent | 00090ec3aa08c59d9634b528f9415d28ea589bbf (diff) |
log prefixes
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/web/js/tools.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/web/js/tools.js b/kvmd/web/js/tools.js index 37bbf451..f5748d87 100644 --- a/kvmd/web/js/tools.js +++ b/kvmd/web/js/tools.js @@ -12,12 +12,12 @@ var tools = new function() { this.debug = function(...args) { if (__debug) { - console.log(...args); + console.log("LOG/DEBUG", ...args); } }; - this.info = console.log; - this.error = console.error; + this.info = (...args) => console.log("LOG/INFO", ...args); + this.error = (...args) => console.error("LOG/ERROR", ...args); }; var $ = function(id) { return document.getElementById(id); }; |