From: Moritz Bunkus Date: Thu, 28 Feb 2013 09:50:25 +0000 (+0100) Subject: LXDebug->dump: Optionen an Data::Dumper übergeben können X-Git-Tag: release-3.1.0beta1~589 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ad65bf1b5dc884673dec87e50fc2616e6262b663;p=kivitendo-erp.git LXDebug->dump: Optionen an Data::Dumper übergeben können --- diff --git a/SL/LXDebug.pm b/SL/LXDebug.pm index 1a0a36568..e4e0cb272 100644 --- a/SL/LXDebug.pm +++ b/SL/LXDebug.pm @@ -157,7 +157,7 @@ sub warn { } sub dump { - my ($self, $level, $name, $variable) = @_; + my ($self, $level, $name, $variable, %options) = @_; if ($data_dumper_available) { my $password; @@ -169,6 +169,7 @@ sub dump { my $dumper = Data::Dumper->new([$variable]); $dumper->Sortkeys(1); $dumper->Indent(2); + $dumper->$_($options{$_}) for keys %options; $self->message($level, "dumping ${name}:\n" . $dumper->Dump()); $variable->{password} = $password if (defined $password);