Fixed missing namespace for Logger.

This commit is contained in:
Chris 2012-12-29 22:17:12 +00:00
parent a6622794fc
commit 196cbcbadf

View File

@ -349,7 +349,7 @@ sub self_or_default {
# If not called as a Logger object, shove the singleton into the argument list
unless(defined($_[0]) && (ref($_[0]) eq 'Logger' || UNIVERSAL::isa($_[0], 'Logger'))) {
# Make a new singleton if one hasn't been made already
$log_singleton = Logger -> new() unless(defined($log_singleton));
$log_singleton = Webperl::Logger -> new() unless(defined($log_singleton));
unshift(@_, $log_singleton);
}