[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
This commit is contained in:
Xavier Morel 2011-03-24 21:48:13 +01:00
parent 885cab6230
commit d6979759fa
1 changed files with 1 additions and 1 deletions

View File

@ -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() {