From: phasefx Date: Wed, 6 Jan 2010 16:41:52 +0000 (+0000) Subject: some error logging tweaks. D_ERROR to D_WARN for util/controller.js, and make D_ERRO... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=db34b67f6601160138563077386fe35c18cf4400;p=evergreen%2Fpines.git 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 git-svn-id: svn://svn.open-ils.org/ILS/trunk@15263 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/controller.js b/Open-ILS/xul/staff_client/chrome/content/util/controller.js index 775f7cb369..fb3411a375 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/controller.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/controller.js @@ -58,7 +58,7 @@ util.controller.prototype = { } 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); } } } diff --git a/Open-ILS/xul/staff_client/chrome/content/util/error.js b/Open-ILS/xul/staff_client/chrome/content/util/error.js index 9ab2510ca2..7521c9e507 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/error.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/error.js @@ -164,7 +164,11 @@ util.error.prototype = { 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') {