warning was fixed

This commit is contained in:
Denis Fedoseev 2019-04-12 01:05:57 +03:00
parent bcbaf5e75d
commit 14ceae7db7
2 changed files with 5 additions and 5 deletions

View file

@ -16,7 +16,7 @@ Log::Mini - It's a very simple logger which can log your messages to a file or S
$file_logger->info('message to log file');
#prevent buffered output. May slow down your application!
my $synced_file_logger = Log::Mini->new(file => 'log_file.log', synced => 1);
my $synced_file_logger = Log::Mini->get_logger(file => 'log_file.log', synced => 1);
#format message with sprintf
$logger->info('Message with %s %s', 'some', 'additional info');

View file

@ -20,7 +20,7 @@ sub new {
}
elsif ( $type eq 'null' ) {
require Log::Mini::LoggerNULL;
return Log::Mini::LoggerNULL->new(@_);
return Log::Mini::LoggerNULL->new(@args);
}
else {
require Log::Mini::LoggerSTDERR;