From 35ec51ac065351089e5cf992dc1bea6ba87f60e1 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Tue, 31 Jul 2018 15:32:18 +0300 Subject: log prefixes --- kvmd/web/js/tools.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kvmd') 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); }; -- cgit v1.2.3