using arg_dump. js2JSON barfs on things like document and window, so stringifying...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 30 Jun 2005 02:20:52 +0000 (02:20 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 30 Jun 2005 02:20:52 +0000 (02:20 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@995 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/Open-ILS/OpenILS.js

index db4dce5..f232667 100644 (file)
@@ -1,5 +1,5 @@
 function OpenILS_init(params) { 
-       sdump('D_TRACE','Entering OpenILS_init with ' + params + '\n');
+       sdump( 'D_TRACE', arg_dump( arguments, { '0':'js2JSON( map_object( arg, function (i,o) { if (i=="d") return [i,o.toString()]; else return [i,o]; }))' }));
 
        try {
 
@@ -14,11 +14,10 @@ function OpenILS_init(params) {
 
        } catch(E) {}
 
-       sdump('D_TRACE','Exiting OpenILS_init\n');
 }
 
 function OpenILS_exit(params) {
-       sdump('D_TRACE','Entering OpenILS_exit with ' + params + '\n');
+       sdump( 'D_TRACE', arg_dump( arguments, { '0':'js2JSON( map_object( arg, function (i,o) { if (i=="d") return [i,o.toString()]; else return [i,o]; }))' }));
 
        try {