[qooxdoo-commit] SF.net SVN: qooxdoo:[28322]
Brought to you by:
ecker,
martinwittemann
From: <d_w...@us...> - 2011-07-28 15:21:13
|
Revision: 28322 http://qooxdoo.svn.sourceforge.net/qooxdoo/?rev=28322&view=rev Author: d_wagner Date: 2011-07-28 15:21:07 +0000 (Thu, 28 Jul 2011) Log Message: ----------- [BUG #5232] Use console.log for debug-level messages if console.debug isn't available Modified Paths: -------------- branches/branch_1_5_x/qooxdoo/framework/source/class/qx/log/appender/Native.js trunk/qooxdoo/framework/source/class/qx/log/appender/Native.js Modified: branches/branch_1_5_x/qooxdoo/framework/source/class/qx/log/appender/Native.js =================================================================== --- branches/branch_1_5_x/qooxdoo/framework/source/class/qx/log/appender/Native.js 2011-07-28 13:27:45 UTC (rev 28321) +++ branches/branch_1_5_x/qooxdoo/framework/source/class/qx/log/appender/Native.js 2011-07-28 15:21:07 UTC (rev 28322) @@ -58,7 +58,10 @@ "gecko" : function(entry) { if (window.console) { - console[entry.level].call(console, qx.log.appender.Util.toText(entry)); + var level = console[entry.level] ? entry.level : "log"; + if (console[level]) { + console[level].call(console, qx.log.appender.Util.toText(entry)); + } } }, Modified: trunk/qooxdoo/framework/source/class/qx/log/appender/Native.js =================================================================== --- trunk/qooxdoo/framework/source/class/qx/log/appender/Native.js 2011-07-28 13:27:45 UTC (rev 28321) +++ trunk/qooxdoo/framework/source/class/qx/log/appender/Native.js 2011-07-28 15:21:07 UTC (rev 28322) @@ -58,7 +58,10 @@ "gecko" : function(entry) { if (window.console) { - console[entry.level].call(console, qx.log.appender.Util.toText(entry)); + var level = console[entry.level] ? entry.level : "log"; + if (console[level]) { + console[level].call(console, qx.log.appender.Util.toText(entry)); + } } }, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |