Add a method to unmock the logger.
This commit is contained in:
parent
8276336cbe
commit
1ccb468914
1 changed files with 19 additions and 0 deletions
|
|
@ -305,6 +305,25 @@ sub interceptLogging {
|
|||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
=head2 restoreLogging
|
||||
|
||||
Restores's the logging object to its original state.
|
||||
|
||||
=cut
|
||||
|
||||
sub restoreLogging {
|
||||
my $logger = $SESSION->log->getLogger;
|
||||
|
||||
$logger->unmock( 'warn' )
|
||||
->unmock( 'debug' )
|
||||
->unmock( 'info' )
|
||||
->unmock( 'error' )
|
||||
->unmock( 'isDebug' )
|
||||
->unmock( 'is_debug' );
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
=head2 config
|
||||
|
||||
Returns the config object from the session.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue