Subject: | debug_level 2 triggers debug_callback problem |
Continuity::Adapt::HttpDaemon::Request::AUTOLOAD: Error calling
HTTP::Request method ``debug_callback'', Can't locate object method
"debug_callback" via package "HTTP::Headers" at (eval 1588) line 1.
Use of uninitialized value in subroutine entry at
/usr/local/share/perl/5.10.0/Continuity.pm line 456.
Can't use string ("") as a subroutine ref while "strict refs" in use at
/usr/local/share/perl/5.10.0/Continuity.pm line 456.
Attached diff solves this problem.
Subject: | Continuity-debug_callback.diff |
--- old-Continuity/lib/Continuity.pm 2008-10-30 23:31:34.000000000 +0100
+++ new-Continuity/lib/Continuity.pm 2008-10-30 23:31:34.000000000 +0100
@@ -453,7 +453,7 @@
$output .= "$package:$line: ";
}
$output .= "@msg";
- $self->debug_callback->($output);
+ $self->debug_callback->($output) if $self->can('debug_callback');
}
}