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:01:06 +0000 (14:01 -0500)
commit365c38187593411214b1ea26aa7ffa1b61f79ae3
tree37bd02c146b1dc2bad8417921b5a444c64ed87fe
parent8acbaecda1acdc15183dc379e7135f955118b737
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