Bugzilla – Attachment 6514 Details for
Bug 6908
increase DEBUG level for *NOISY* Dates.pm init() messages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6908 - increase DEBUG level for *NOISY* Dates.pm init() messages
Bug-6908---increase-DEBUG-level-for-NOISY-Datespm-.patch (text/plain), 1.07 KB, created by
Chris Cormack
on 2011-12-02 08:43:08 UTC
(
hide
)
Description:
Bug 6908 - increase DEBUG level for *NOISY* Dates.pm init() messages
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-12-02 08:43:08 UTC
Size:
1.07 KB
patch
obsolete
>From 03d7f4a9faf7017f65f9186caa2835ac30493b39 Mon Sep 17 00:00:00 2001 >From: Mason James <mtj@kohaaloha.com> >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 <chrisc@catalyst.net.nz> >--- > 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.5.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6908
:
5535
|
5536
| 6514