projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Anpassung Rose-Funktionen auf Umstellung currencies
[kivitendo-erp.git]
/
SL
/
LXDebug.pm
diff --git
a/SL/LXDebug.pm
b/SL/LXDebug.pm
index
e4e0cb2
..
17009dd
100644
(file)
--- a/
SL/LXDebug.pm
+++ b/
SL/LXDebug.pm
@@
-170,7
+170,8
@@
sub dump {
$dumper->Sortkeys(1);
$dumper->Indent(2);
$dumper->$_($options{$_}) for keys %options;
$dumper->Sortkeys(1);
$dumper->Indent(2);
$dumper->$_($options{$_}) for keys %options;
- $self->message($level, "dumping ${name}:\n" . $dumper->Dump());
+ my $output = $dumper->Dump();
+ $self->message($level, "dumping ${name}:\n" . $output);
$variable->{password} = $password if (defined $password);
$variable->{password} = $password if (defined $password);
@@
-181,10
+182,14
@@
sub dump {
keys %{ $variable };
}
keys %{ $variable };
}
+ return $output;
+
} else {
$self->message($level,
"dumping ${name}: Data::Dumper not available; "
. "variable cannot be dumped");
} else {
$self->message($level,
"dumping ${name}: Data::Dumper not available; "
. "variable cannot be dumped");
+
+ return undef;
}
}
}
}