Improve and harmonize logging in EDI scripts

Bug #863445 reported by Lebbeous Fogle-Weekley on 2011-09-30
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

This affects Evergreen 2.0+. and do their logging inconsistently (both between the two scripts and within them).

You'll find print, print STDERR, die, and use of OpenSRF::Utils::Logger.

Making these scripts do all feasible logging with OpenSRF::Utils::Logger could greatly aid users in troubleshooting.

For bonus points, enhance the logging to tell us even more about what's going on in those scripts.

I have looked at
under Error! Warning! Info! Debug!) and
and thought of using the logger in OpenSRF::Utils::Logger in script. The logging levels ERROR, WARNING, INFO, DEBUG,
INTERNAL will help the user in great deal when trying to troubleshoot
the code.

So my attempt was to use $logger->info(), $logger->error(),
$logger->internal(), $logger->debug() according to the information in
the places of print, print STDERR and die. But I do have a little
concern about the logging levels discrimination and how could I decide
which log goes to which level ? I have here with attached the fixed and scripts in the file.

Michael Peters (mrpeters) wrote :


Thank you for your efforts in attempting to resolve this bug. Unfortunately, the Evergreen community requires that all code submissions follow the guidelines at Most of all, submissions via Git are preferred. At the very minimum, a Git formatted patch is required.

Some great information on getting started with that is available at

As for commit messages, at a minimum, the commit message should consist of a subject line (i.e., the first line of the commit message), then a blank line, then an optional description of the patch, followed by one or more signoffs. The subject line should be brief, ideally no more than 60-70 characters, and should include a bug number from LaunchPad if relevant. Here is an example of a minimum commit message:

LP#24544: fix the quuxifier
Signed-off-by: Jane Hacker <email address hidden>

If you need any help getting started with submitting code this way in the future, please feel free to reach out to me (or any of the other devs) via email, or the Evergreen IRC chat. (#evergreen on

Thank you, again, for your efforts and I hope you're able to get the code formatted in the proper manner.

Changed in evergreen:
status: New → Incomplete
Changed in evergreen:
status: Incomplete → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments