diff options
author | jasonjayr <jasonjayr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-13 06:03:48 +0000 |
---|---|---|
committer | jasonjayr <jasonjayr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-13 06:03:48 +0000 |
commit | d15540803b3f0ad6b6c76d71aff3f49415b202e1 (patch) | |
tree | 65b27650b4a4b95fb690ec2f256298d7a8f59144 /LedgerSMB | |
parent | 734c55beff2e54ad77abac280a399625833775e8 (diff) |
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
Diffstat (limited to 'LedgerSMB')
-rw-r--r-- | LedgerSMB/Log.pm | 7 |
1 files changed, 6 insertions, 1 deletions
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; |