From d6979759fad8f067c995eef28bf75c6988ea57ce Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 24 Mar 2011 21:48:13 +0100 Subject: [PATCH] [FIX] shut up the annoying console spamming by default. To enable it, set 'openerp.debug' to true or add 'debug' at the start of the querystring bzr revid: xmo@openerp.com-20110324204813-09wdb7k3m5h7asca --- addons/base/static/openerp/js/base_chrome.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/base/static/openerp/js/base_chrome.js b/addons/base/static/openerp/js/base_chrome.js index 2aacf52515b..799526ae325 100644 --- a/addons/base/static/openerp/js/base_chrome.js +++ b/addons/base/static/openerp/js/base_chrome.js @@ -104,7 +104,7 @@ openerp.base.BasicController = Class.extend({ this.on_log.apply(this,args); }, on_log: function() { - if(window.console) + if(window.console && (window.openerp.debug || (window.location.search.indexOf('?debug') !== -1))) console.log(arguments); }, on_ready: function() {