[Koha-patches] [PATCH] Bug 6908 - increase DEBUG level for *NOISY* Dates.pm init() messages
Mason James
mtj at kohaaloha.com
Thu Sep 22 16:03:47 CEST 2011
---
C4/Dates.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/Dates.pm b/C4/Dates.pm
index 335de1c..8b29264 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;
}
--
1.7.1
More information about the Koha-patches
mailing list