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

Evergreen Git git at git.evergreen-ils.org
Tue Aug 16 10:23:28 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  e327605249447380f579c4fd07b4f587a6c1560e (commit)
      from  76c5dbdffe0a8160e6cee8537aa806b993e67640 (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 e327605249447380f579c4fd07b4f587a6c1560e
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date:   Tue Aug 16 09:10:45 2011 -0400

    Keep the logging output of the EDI translator by default
    
    There is valuable troubleshooting information there that is otherwise hard to
    find.  This particularly matters when the output of an EDI
    Action/Trigger template (JEDI) doesn't successfully get translated to
    EDIFACT for nonobvious reasons.
    
    In production environments, you might instead pipe to logger so that you can
    collect output with syslog, rather than in a flat file.  As long as
    output goes *somewhere.*
    
    Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
    Signed-off-by: Jason Etheridge <jason at esilibrary.com>

diff --git a/Open-ILS/src/edi_translator/edi_webrick.bash b/Open-ILS/src/edi_translator/edi_webrick.bash
index 732d50a..9ecd731 100755
--- a/Open-ILS/src/edi_translator/edi_webrick.bash
+++ b/Open-ILS/src/edi_translator/edi_webrick.bash
@@ -16,8 +16,12 @@ script='./edi_webrick.rb';
 # This doesn't work?
 #      export RUBYLIB=$lib
 
+echo -n Starting translator in background with logging...
+
 # This is necessary 
-echo export RUBYOPT=rubygems
-     export RUBYOPT=rubygems
-echo ruby $script '&'
-     ruby $script &
+export RUBYOPT=rubygems
+
+# Instead of logging to file, one could pipe to the logger command.
+ruby $script --verbose >> /openils/var/log/edi_webrick.log 2>&1 &
+
+echo done.

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

Summary of changes:
 Open-ILS/src/edi_translator/edi_webrick.bash |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list