From fc4752eb17017694893709eb7c0ac20bc5316523 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 13 Jul 2006 21:59:18 +0000 Subject: [PATCH] debugging git-svn-id: svn://svn.open-ils.org/ILS/trunk@4987 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js index bd783b5c25..e2ac577b78 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js @@ -40,7 +40,9 @@ OpenILS.data.prototype = { const OpenILS=new Components.Constructor("@mozilla.org/openils_data_cache;1", "nsIOpenILS"); var data_cache=new OpenILS( ); for (var i = 0; i < arguments.length; i++) { - this.error.sdump('D_DATA','stashing ' + arguments[i] + ' : ' + this[arguments[i]] + '\n'); + try { + if (arguments[i] != 'hash' && arguments[i] != 'list') this.error.sdump('D_DATA_STASH','stashing ' + arguments[i] + ' : ' + this[arguments[i]] + (typeof this[arguments[i]] == 'object' ? ' = ' + js2JSON(this[arguments[i]]) : '') + '\n'); + } catch(F) { alert(F); } data_cache.wrappedJSObject.OpenILS.prototype.data[arguments[i]] = this[arguments[i]]; } } catch(E) { @@ -83,7 +85,7 @@ OpenILS.data.prototype = { var data_cache=new OpenILS( ); var dc = data_cache.wrappedJSObject.OpenILS.prototype.data; for (var i in dc) { - this.error.sdump('D_DATA','Retrieving ' + i + ' : ' + dc[i] + '\n'); + this.error.sdump('D_DATA_RETRIEVE','Retrieving ' + i + ' : ' + dc[i] + '\n'); this[i] = dc[i]; } if (typeof this.on_complete == 'function') { -- 2.11.0