summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-07-31 15:32:18 +0300
committerDevaev Maxim <[email protected]>2018-07-31 15:32:18 +0300
commit35ec51ac065351089e5cf992dc1bea6ba87f60e1 (patch)
treec2c542f6ef3526fc6557c0179857189d47d5e5b0 /kvmd
parent00090ec3aa08c59d9634b528f9415d28ea589bbf (diff)
log prefixes
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/web/js/tools.js6
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); };