From: erickson Date: Tue, 2 Jan 2007 19:48:15 +0000 (+0000) Subject: added some logging and made the logging a little more clear X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fd39643458ea3b1d2220b762da48bd083591794e;p=Evergreen.git added some logging and made the logging a little more clear git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@6715 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/javascript/backend/circ/circ_lib.js b/Open-ILS/src/javascript/backend/circ/circ_lib.js index a6740e1d87..cf71a3e772 100644 --- a/Open-ILS/src/javascript/backend/circ/circ_lib.js +++ b/Open-ILS/src/javascript/backend/circ/circ_lib.js @@ -216,26 +216,27 @@ function log_vars( prefix ) { if(patron) { str += ' Patron=' + patron.id; - str += ', Patron Username='+ patron.usrname; - str += ', Patron Profile Group='+ patronProfile; - str += ', Patron Fines=' + patronFines; - str += ', Patron OverdueCount=' + patronOverdueCount; - str += ', Patron Items Out=' + patronItemsOut; + str += ', Patron_Username='+ patron.usrname; + str += ', Patron_Profile Group='+ patronProfile; + str += ', Patron_Fines=' + patronFines; + str += ', Patron_OverdueCount=' + patronOverdueCount; + str += ', Patron_Items Out=' + patronItemsOut; try { - str += ', Patron Barcode=' + patron.card.barcode; - str += ', Patron Library=' + patron.home_ou.name; + str += ', Patron_Barcode=' + patron.card.barcode; + str += ', Patron_Library=' + patron.home_ou.name; } catch(e) {} } if(copy) { str += ', Copy=' + copy.id; - str += ', Copy Barcode=' + copy.barcode; - str += ', Copy status=' + copyStatus; + str += ', Copy_Barcode=' + copy.barcode; + str += ', Copy_status=' + copyStatus; + str += (copy.circ_modifier) ? ', Circ_Mod=' + copy.circ_modifier : ''; try { - str += ', Circ Lib=' + copy.circ_lib.shortname; - str += ', Copy location=' + copy.location.name; + str += ', Circ_Lib=' + copy.circ_lib.shortname; + str += ', Copy_location=' + copy.location.name; } catch(e) {} } @@ -243,16 +244,16 @@ function log_vars( prefix ) { if(title) str += ', Record=' + title.id; if(recDescriptor) { - str += ', Record Descriptor=' + recDescriptor.id; - str += ', Item Type=' + recDescriptor.item_type; - str += ', Item Form=' + recDescriptor.item_form; - str += ', Item Lang=' + recDescriptor.item_lang; - str += ', Item Audience=' + recDescriptor.audience; + str += ', Record_Descriptor=' + recDescriptor.id; + str += ', Item_Type=' + recDescriptor.item_type; + str += ', Item_Form=' + recDescriptor.item_form; + str += ', Item_Lang=' + recDescriptor.item_lang; + str += ', Item_Audience=' + recDescriptor.audience; } - str += ' Is Renewal: ' + ( (isTrue(isRenewal)) ? "yes" : "no" ); - str += ' Is Precat: ' + ( (isTrue(isPrecat)) ? "yes" : "no" ); - str += (holdRequestLib) ? ' Hold request lib is ' + holdRequestLib.shortname : ''; + str += ', Is_Renewal: ' + ( (isTrue(isRenewal)) ? "yes" : "no" ); + str += ', Is_Precat: ' + ( (isTrue(isPrecat)) ? "yes" : "no" ); + str += (holdRequestLib) ? ', Hold_request_lib=' + holdRequestLib.shortname : ''; log_info(str); }