undefined warning was fixed

This commit is contained in:
Denis Fedoseev 2019-02-22 10:50:23 +03:00
parent 466dee9d39
commit 32bf8ee282

View file

@ -3,7 +3,7 @@ package Log::Mini;
use strict;
use warnings;
our $VERSION = "0.0.1";
our $VERSION = "0.0.2";
use Log::Mini::LoggerFILE;
use Log::Mini::LoggerSTDERR;
@ -12,6 +12,8 @@ sub new {
my $class = shift;
my ( $type, @args ) = @_;
$type = 'stderr' unless defined $type;
if ( $type eq 'file' ) {
return Log::Mini::LoggerFILE->new(@args);
}