[open-ils-commits] r9038 - in trunk/Open-ILS/xul/staff_client:
chrome/content/util server/circ server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Mar 15 01:36:14 EDT 2008
Author: phasefx
Date: 2008-03-15 01:02:31 -0400 (Sat, 15 Mar 2008)
New Revision: 9038
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/util/error.js
trunk/Open-ILS/xul/staff_client/server/circ/util.js
trunk/Open-ILS/xul/staff_client/server/patron/util.js
Log:
silence some of the debug chatter in the console
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/error.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/error.js 2008-03-15 04:39:49 UTC (rev 9037)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/error.js 2008-03-15 05:02:31 UTC (rev 9038)
@@ -44,6 +44,7 @@
'D_TRACE' : { 'dump' : true },
'D_ALERT' : { 'alert' : true, 'dump' : true },
'D_WARN' : false,
+ 'D_COLUMN_RENDER_ERROR' : false,
'D_XULRUNNER' : false,
'D_DECK' : { 'dump' : true },
'D_TRACE_ENTER' : false,
Modified: trunk/Open-ILS/xul/staff_client/server/circ/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/util.js 2008-03-15 04:39:49 UTC (rev 9037)
+++ trunk/Open-ILS/xul/staff_client/server/circ/util.js 2008-03-15 05:02:31 UTC (rev 9038)
@@ -1834,7 +1834,7 @@
try {
for (var i = 0; i < cols.length; i++) {
switch (typeof cols[i].render) {
- case 'function': try { values[i] = cols[i].render(my); } catch(E) { values[i] = error_value; dump(E+'\n'); } break;
+ case 'function': try { values[i] = cols[i].render(my); } catch(E) { values[i] = error_value; obj.error.sdump('D_COLUMN_RENDER_ERROR',E); } break;
case 'string' : cmd += 'try { ' + cols[i].render + '; values['+i+'] = v; } catch(E) { values['+i+'] = error_value; }'; break;
default: cmd += 'values['+i+'] = "??? '+(typeof cols[i].render)+'"; ';
}
Modified: trunk/Open-ILS/xul/staff_client/server/patron/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/util.js 2008-03-15 04:39:49 UTC (rev 9037)
+++ trunk/Open-ILS/xul/staff_client/server/patron/util.js 2008-03-15 05:02:31 UTC (rev 9038)
@@ -434,7 +434,7 @@
try {
for (var i = 0; i < cols.length; i++) {
switch (typeof cols[i].render) {
- case 'function': try { values[i] = cols[i].render(my); } catch(E) { values[i] = error_value; dump(E+'\n'); } break;
+ case 'function': try { values[i] = cols[i].render(my); } catch(E) { values[i] = error_value; obj.error.sdump('D_COLUMN_RENDER_ERROR',E); } break;
case 'string' : cmd += 'try { ' + cols[i].render + '; values['+i+'] = v; } catch(E) { values['+i+'] = error_value; }'; break;
default: cmd += 'values['+i+'] = "??? '+(typeof cols[i].render)+'"; ';
}
More information about the open-ils-commits
mailing list