projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CustomerVendor-Picker: keine ungültigen, wenn $::form->{obsolete} nicht gesetzt ist
[kivitendo-erp.git]
/
SL
/
LXDebug.pm
diff --git
a/SL/LXDebug.pm
b/SL/LXDebug.pm
index
d98d36a
..
80b41f9
100644
(file)
--- a/
SL/LXDebug.pm
+++ b/
SL/LXDebug.pm
@@
-129,10
+129,10
@@
sub show_backtrace {
return 1 unless ($force || ($global_level & BACKTRACE_ON_ERROR));
return 1 unless ($force || ($global_level & BACKTRACE_ON_ERROR));
- $self->message(
BACKTRACE_ON_ERROR
, "Starting full caller dump:");
+ $self->message(
0
, "Starting full caller dump:");
my $level = 0;
while (my ($dummy, $filename, $line, $subroutine) = caller $level) {
my $level = 0;
while (my ($dummy, $filename, $line, $subroutine) = caller $level) {
- $self->message(
BACKTRACE_ON_ERROR
, " ${subroutine} from ${filename}:${line}");
+ $self->message(
0
, " ${subroutine} from ${filename}:${line}");
$level++;
}
$level++;
}
@@
-213,6
+213,17
@@
sub dump_sql_result {
$self->message($level, $prefix . sprintf('(%d row%s)', scalar @{ $results }, scalar @{ $results } > 1 ? 's' : ''));
}
$self->message($level, $prefix . sprintf('(%d row%s)', scalar @{ $results }, scalar @{ $results } > 1 ? 's' : ''));
}
+sub dump_object {
+ my ($self, $level, $text, $object) = @_;
+
+ my $copy;
+ if ($object) {
+ $copy->{$_} = $object->$_ for $object->meta->columns;
+ }
+
+ $self->dump($level, $text, $copy);
+}
+
sub show_diff {
my ($self, $level, $item1, $item2, %params) = @_;
sub show_diff {
my ($self, $level, $item1, $item2, %params) = @_;
@@
-350,7
+361,7
@@
sub log_request {
my $template = <<EOL;
*************************************
my $template = <<EOL;
*************************************
-
GET
$ENV{SCRIPT_NAME} $session_id ($::myconfig{login})
+
$ENV{REQUEST_METHOD}
$ENV{SCRIPT_NAME} $session_id ($::myconfig{login})
routing: $type, controller: $controller, action: $action
EOL
routing: $type, controller: $controller, action: $action
EOL