[open-ils-commits] [GIT] Evergreen ILS branch master updated. a7d34c5befa20b9a6baddef04d3dbb3411e121e5

Evergreen Git git at git.evergreen-ils.org
Thu May 26 01:30:40 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  a7d34c5befa20b9a6baddef04d3dbb3411e121e5 (commit)
       via  bd93993136af737dde130f8973ccf9fab39445a8 (commit)
      from  8a26888af4c658849d4089ace91c91ecc005985d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a7d34c5befa20b9a6baddef04d3dbb3411e121e5
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Mon May 23 14:03:33 2011 -0400

    debugging aid, take the "thread trace" for a given page and make it stand out more
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>

diff --git a/Open-ILS/xul/staff_client/server/skin/custom.js.example b/Open-ILS/xul/staff_client/server/skin/custom.js.example
index 2b00bb2..d7b36b6 100644
--- a/Open-ILS/xul/staff_client/server/skin/custom.js.example
+++ b/Open-ILS/xul/staff_client/server/skin/custom.js.example
@@ -10,6 +10,7 @@
 
 // Debugging aids.  _dump_level = 4 enables all dump statements
 _dump_level = 4;
+
 var _dump_prefix = '0';
 try {
     netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
@@ -20,10 +21,28 @@ try {
         var temp = prefs.getIntPref('oils.unique_id') + 1;
         prefs.setIntPref('oils.unique_id',temp);
         _dump_prefix = String( temp );
+        switch( temp % 5 ) {
+            case 0: _dump_prefix = '!! ' + _dump_prefix; break;
+            case 1: _dump_prefix = '@@ ' + _dump_prefix; break;
+            case 2: _dump_prefix = '## ' + _dump_prefix; break;
+            case 3: _dump_prefix = '$$ ' + _dump_prefix; break;
+            case 4: default: _dump_prefix = '%% ' + _dump_prefix; break;
+        }
     }
-    dump(' _dump_prefix ' + _dump_prefix + ' = ' + location.href + '\n');
+    dump(' >>>>>>>>>>>>>>>>>>>>>>>>>>>> ' + _dump_prefix + ' = ' + location.href + '\n');
 } catch(E) {
     dump('Error in custom.js trying to set oils.unique_id\n');
 }
 
-
+function dump_xulG(msg) {
+    dump('[[[[[[[[[[[[[[[[[[[[[[[[[[[[[\n');
+    dump(msg +'\n');
+    if (xulG) {
+        for (var i in xulG) {
+            dump('xulG['+i+'] = '+xulG[i]+'\n');
+        }
+    } else {
+        dump('no xulG\n');
+    }
+    dump(']]]]]]]]]]]]]]]]]]]]]]]]]]]]]\n');
+}

commit bd93993136af737dde130f8973ccf9fab39445a8
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Mon May 23 15:51:32 2011 -0400

    debugging aid.  split dump output produced by replacement dump function in custom.js.example
    
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>

diff --git a/Open-ILS/xul/staff_client/external/dump_splitter.sh b/Open-ILS/xul/staff_client/external/dump_splitter.sh
new file mode 100755
index 0000000..5f8eb27
--- /dev/null
+++ b/Open-ILS/xul/staff_client/external/dump_splitter.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+# This can take a file containing output produced by the replacement dump function in custom.js.example
+# and break it into multiple files, one for each numeric dump prefix.  Not perfect, since it'll truncate
+# messages that aren't on one contiguous line.
+for x in `grep '>>>>>>>>>>>>>' $* | perl -ne 'if ( />>>> .. (\d+) =/ ) { print "$1\n"; }'` ; do
+grep $x $* > $x
+done
+grep '>>>>>>>>>>>>>' $*

-----------------------------------------------------------------------

Summary of changes:
 .../xul/staff_client/external/dump_splitter.sh     |    8 +++++++
 .../xul/staff_client/server/skin/custom.js.example |   23 ++++++++++++++++++-
 2 files changed, 29 insertions(+), 2 deletions(-)
 create mode 100755 Open-ILS/xul/staff_client/external/dump_splitter.sh


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list