some error logging tweaks. D_ERROR to D_WARN for util/controller.js, and make D_ERRO...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Jan 2010 16:41:52 +0000 (16:41 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Jan 2010 16:41:52 +0000 (16:41 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15263 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/controller.js
Open-ILS/xul/staff_client/chrome/content/util/error.js

index 775f7cb..fb3411a 100644 (file)
@@ -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);
             }
         }
     }
index 9ab2510..7521c9e 100644 (file)
@@ -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') {