[open-ils-commits] r15263 - trunk/Open-ILS/xul/staff_client/chrome/content/util (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jan 6 11:41:55 EST 2010
Author: phasefx
Date: 2010-01-06 11:41:52 -0500 (Wed, 06 Jan 2010)
New Revision: 15263
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/util/controller.js
trunk/Open-ILS/xul/staff_client/chrome/content/util/error.js
Log:
some error logging tweaks. D_ERROR to D_WARN for util/controller.js, and make D_ERROR show up as Errors in the javascript console
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/controller.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/controller.js 2010-01-06 16:39:14 UTC (rev 15262)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/controller.js 2010-01-06 16:41:52 UTC (rev 15263)
@@ -58,7 +58,7 @@
} catch(E) {
var error = 'Problem in util.controller.render with\n'
+ this.render_list[i] + '\n\n' + js2JSON(E);
- this.error.sdump('D_ERROR',error);
+ this.error.sdump('D_WARN',error);
}
}
}
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/error.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/error.js 2010-01-06 16:39:14 UTC (rev 15262)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/error.js 2010-01-06 16:41:52 UTC (rev 15263)
@@ -164,7 +164,11 @@
if (this.forceAlertDump || ( this.allowAlertDump && this.sdump_levels[level] && this.sdump_levels[level].alert ) ) alert(message);
if (this.forceConsoleDump || ( this.allowConsoleDump && this.sdump_levels[level] && this.sdump_levels[level].console ) ) {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
- this.consoleService.logStringMessage(message);
+ if (level=='D_ERROR') {
+ Components.utils.reportError(message);
+ } else {
+ this.consoleService.logStringMessage(message);
+ }
}
if (this.forceFileDump || ( this.allowFileDump && this.sdump_levels[level] && this.sdump_levels[level].file ) ) {
if (level!='D_FILE') {
More information about the open-ils-commits
mailing list