Skip to content

Commit

Permalink
return false from null adapter is_xxx methods - RT #64164
Browse files Browse the repository at this point in the history
  • Loading branch information
jonswar committed Mar 23, 2011
1 parent 8880a1b commit a509ab4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Revision history for Log-Any

0.12 Feb 12, 2010

* Fixes
- Eliminate 'subroutine redefined' warning in case Log::Any::Adapter loaded before
Log::Any::Test

* Implementation
- Migrate to Dist::Zilla

0.11 Feb 12, 2010

* Improvements
Expand Down
4 changes: 2 additions & 2 deletions lib/Log/Any/Adapter/Null.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ my @all_methods = (
( map { $_ . "f" } ( Log::Any->logging_methods, @alias_names ) ),
);

# All methods are no-ops
# All methods are no-ops and return false
#
foreach my $method (@all_methods) {
no strict 'refs';
*{ __PACKAGE__ . "::$method" } = sub { };
*{ __PACKAGE__ . "::$method" } = sub { return undef };
}

1;
Expand Down

0 comments on commit a509ab4

Please sign in to comment.