]> git.evergreen-ils.org Git - Evergreen.git/commit
Serials: change more carp() to croak() to avoid infinite loops
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 13 Feb 2013 15:34:17 +0000 (10:34 -0500)
committerDan Wells <dbw2@calvin.edu>
Thu, 21 Feb 2013 19:02:05 +0000 (14:02 -0500)
commit4e266eaf972370051a12bbd4be04b536e6326010
tree9d5dd51ca7a9d37f8f81eac7c807fb74919078a2
parent173fe017e4639016223fe788755360a4c8240a0b
Serials: change more carp() to croak() to avoid infinite loops

This addresses a problem very similar to that in LP #1075167, where
certain loops never end because problems with the data elicited calls to
carp(), which fills up log, but never gives our loops notice to end.

Visible symptoms include 1) a greate volume of log spew and 2) an
open-ils.serial drone that ties up a CPU.

The fault lies maybe in our loops rather than in the MFHD
package, but this fixes the problem fastest, and should not have
undesirable side-effects.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Caption.pm