When adding errors from failed processing to acq.edi_message, set error_time
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 3 Apr 2013 19:31:09 +0000 (15:31 -0400)
committerBen Shum <bshum@biblio.org>
Sat, 27 Apr 2013 05:25:17 +0000 (01:25 -0400)
This has obvious benefits in facilitating log analysis after a problem.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/EDI.pm

index c46b504..a84b1c3 100644 (file)
@@ -244,6 +244,7 @@ sub process_retrieval {
         if ($@) {
             $logger->error($@);
             $incoming->status('proc_error');
+            $incoming->error_time('now');
             $incoming->error($@);
         } else {
             $incoming->status('processed');