diff options
author | jake <jake@jakes-mail.top> | 2022-08-17 02:58:29 -0400 |
---|---|---|
committer | jake <jake@jakes-mail.top> | 2022-08-17 02:58:29 -0400 |
commit | ad52b314807b2817895ed36a266645570adf7c7e (patch) | |
tree | bdc0c851d0c6dd2fd20ca26c4aad35b1ec71152c /gmi.pl | |
parent | 0c204b825c59b29730a3132aa06e2e640e095b7f (diff) |
Fix bug in logging()
Diffstat (limited to 'gmi.pl')
-rwxr-xr-x | gmi.pl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |