Subject: | If a log file can't be created/read the error is supressed |
Under some circumstances it is possible that a log file will not be
created and an error is raised but not correctly dealt with, generating
a spurious error.
if ( $self->{_mode} ) {
my $log = $self->_open_log_file($file);
# $log is not checked...
if ( $log ) {
$self->_write_log( $log, $message );
close $log;
}
# If there is no $log then pass the error on, don't carry on blindly
else {
return $self->_raise_error( $self->get_error() );
}
}
This fix will be included in the upcoming 0.40 version, along with the
ability to suppress the date stamp if desired.