Skip to content

Commit

Permalink
For GH-209 - Add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hkoba committed Jan 14, 2022
1 parent 46aa175 commit 8fafc7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lite/WebMVC0/SiteApp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,13 @@ sub call {
}

if (not $error or is_done($error)) {
print STDERR "# NORMAL\n" if DEBUG_ERROR;

return $self->psgi_response_of_connection($con, $env);

} elsif (ref $error eq 'ARRAY' or ref $error eq 'CODE') {
print STDERR "# SPECIAL\n" if DEBUG_ERROR;

# redirect
if ($self->{cf_debug_psgi}) {
if (my $errfh = fileno(STDERR) ? \*STDERR : $env->{'psgi.errors'}) {
Expand All @@ -378,6 +381,7 @@ sub call {
});

} elsif (UNIVERSAL::isa($error, 'YATT::Lite::Error')) {
print STDERR "# ERROR\n" if DEBUG_ERROR;

return $self->error_response($error, $env, $con);

Expand Down

0 comments on commit 8fafc7c

Please sign in to comment.