Serials: change more carp() to croak() to avoid infinite loops user/senator/serials-more-croaking
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 13 Feb 2013 15:34:17 +0000 (10:34 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 13 Feb 2013 15:34:17 +0000 (10:34 -0500)
commit00900b42902e4f39ebc1b25eca7f0fe03982113e
treec31ff0b2690b1bfeadee82085d2d715f2880dfd4
parenta7da0c23c6c7392dbc2c9fa25a816a66708d8e2d
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>
Open-ILS/src/perlmods/lib/OpenILS/Utils/MFHD/Caption.pm