From ad52b314807b2817895ed36a266645570adf7c7e Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 17 Aug 2022 02:58:29 -0400 Subject: Fix bug in logging() --- gmi.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gmi.pl') diff --git a/gmi.pl b/gmi.pl index dae3adf..522d27a 100755 --- a/gmi.pl +++ b/gmi.pl @@ -7,7 +7,7 @@ use warnings; use 5.010; #use diagnostics; -our $VERSION = 'v0.0.8'; +our $VERSION = 'v0.0.9'; # Modules use IO::Socket::SSL; # CPAN @@ -555,7 +555,7 @@ sub logging { elsif (exists $conf_ref->{default}{log_file} and $conf_ref->{default}{log_file}) { my $p = abs_or_rel($conf_ref->{default}{log_file}); if ($p eq 'abs') { - open my $fh, '|-', "$conf_ref->{default}{log_file}" + open my $fh, '>>', "$conf_ref->{default}{log_file}" or die "Cannot open log file: $ERRNO"; return $fh; } -- cgit v1.2.3