Skip Menu |

This queue is for tickets about the Log-Trivial CPAN distribution.

Report information
The Basics
Id: 55098
Status: resolved
Worked: 15 min
Left: 15 min
Priority: 0/
Queue: Log-Trivial

People
Owner: atrickett [...] cpan.org
Requestors: adam.trickett [...] iredale.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.31
Fixed in: 0.40



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.