summaryrefslogtreecommitdiff
path: root/gmi.pl
diff options
context:
space:
mode:
authorjake <jake@jakes-mail.top>2022-08-17 02:58:29 -0400
committerjake <jake@jakes-mail.top>2022-08-17 02:58:29 -0400
commitad52b314807b2817895ed36a266645570adf7c7e (patch)
treebdc0c851d0c6dd2fd20ca26c4aad35b1ec71152c /gmi.pl
parent0c204b825c59b29730a3132aa06e2e640e095b7f (diff)
Fix bug in logging()
Diffstat (limited to 'gmi.pl')
-rwxr-xr-xgmi.pl4
1 files changed, 2 insertions, 2 deletions
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;
}