From 7ea9df413a14c7de47266ec9833b6eb853bd9b42 Mon Sep 17 00:00:00 2001 From: Mason James Date: Thu, 22 Sep 2011 21:48:04 +1200 Subject: [PATCH] Bug 6908 - increase DEBUG level for *NOISY* Dates.pm init() messages Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain (cherry picked from commit 924ce3697dc97767f8d2261552da336afb1552ee) Signed-off-by: Chris Nighswonger --- C4/Dates.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Dates.pm b/C4/Dates.pm index 335de1c8ae..8b292646cc 100644 --- a/C4/Dates.pm +++ b/C4/Dates.pm @@ -167,7 +167,7 @@ sub init ($;$$) { $self->{'dateformat'} = $dformat = ( scalar(@_) >= 2 ) ? $_[1] : _prefformat(); ( $format_map{$dformat} ) or croak "Invalid date format '$dformat' from " . ( ( scalar(@_) >= 2 ) ? 'argument' : 'system preferences' ); $self->{'dmy_arrayref'} = [ ( (@_) ? $self->dmy_map(shift) : localtime ) ]; - $debug and warn "(during init) \@\$self->{'dmy_arrayref'}: " . join( ' ', @{ $self->{'dmy_arrayref'} } ) . "\n"; + if ($debug > 1) { warn "(during init) \@\$self->{'dmy_arrayref'}: " . join( ' ', @{ $self->{'dmy_arrayref'} } ) . "\n"; } return $self; } -- 2.39.5