Create log dir if necessary
This commit is contained in:
parent
a83aa49a89
commit
33d8e11a3e
|
@ -8,6 +8,7 @@ use lib 'blib/lib';
|
|||
use Simba::DA;
|
||||
|
||||
my $now = strftime('%Y-%m-%dT%H:%M:%S', localtime());
|
||||
mkdir('/var/log/simba');
|
||||
open(my $log, '>>', '/var/log/simba/da.log.' . $now);
|
||||
$log->autoflush(1);
|
||||
my $da = Simba::DA->new({fh_log => $log});
|
||||
|
|
Loading…
Reference in New Issue