From d15540803b3f0ad6b6c76d71aff3f49415b202e1 Mon Sep 17 00:00:00 2001 From: jasonjayr Date: Mon, 13 Nov 2006 06:03:48 +0000 Subject: changed arguments to Dumper to sort keys by default. since $form typically contains a *TON* of keys, this will make it significantly easier to locate values of interest. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@557 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Log.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/LedgerSMB/Log.pm b/LedgerSMB/Log.pm index 235a2ded..f816660b 100644 --- a/LedgerSMB/Log.pm +++ b/LedgerSMB/Log.pm @@ -76,6 +76,11 @@ sub warn { shift->print('warn',@_) } sub notice { shift->print('notice',@_) } sub info { shift->print('info',@_) } sub debug { shift->print('debug',@_) } -sub dump { shift->print('dump',Dumper(@_)) } +sub dump { + my $self = shift; + my $d = Data::Dumper->new([@_]); + $d->Sortkeys(1); + $self->print('dump',$d->Dump()); +} 1; -- cgit v1.2.3