Revision: 36 Author: matt Date: 2006-08-03 15:49:07 +0000 (Thu, 03 Aug 2006)
Log Message: ----------- Allow plugins to log outside of hooks without causing uninitialized warnings Modified Paths: -------------- trunk/lib/AxKit2/Plugin.pm Modified: trunk/lib/AxKit2/Plugin.pm =================================================================== --- trunk/lib/AxKit2/Plugin.pm 2006-08-03 15:24:29 UTC (rev 35) +++ trunk/lib/AxKit2/Plugin.pm 2006-08-03 15:49:07 UTC (rev 36) @@ -70,7 +70,7 @@ my $self = shift; my $level = shift; my ($package) = caller; - if ($package eq __PACKAGE__) { + if ($package eq __PACKAGE__ || !defined $self->{_hook}) { $self->client->log($level, $self->plugin_name, " ", @_); } else {