[open-ils-commits] [GIT] Evergreen ILS branch rel_2_0 updated. 05724784946f4e5ad12919266d89e09a49b7e019

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, rel_2_0 has been updated
       via  05724784946f4e5ad12919266d89e09a49b7e019 (commit)
      from  675bf44a644c886467aa59563019b564777d2f51 (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 05724784946f4e5ad12919266d89e09a49b7e019
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