Skip Menu |

This queue is for tickets about the Message-Passing-Filter-Regexp CPAN distribution.

Report information
The Basics
Id: 87519
Status: new
Priority: 0/
Queue: Message-Passing-Filter-Regexp

People
Owner: Nobody in particular
Requestors: abraxxa [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.05
Fixed in: (no value)



Subject: don't try to match undefined log messages
The following error filled up my log: Error in consume_message callback: Use of uninitialized value $log_line in pattern match (m//) at /home/user/perl5/perlbrew/perls/LOGGING/lib/site_perl/5.16.3/Message/Passing/Filter/Regexp.pm line 93. Please add a check if $from exists in the message and that $log_line is defined and skip the filter in this case. I have multiple Regex filters for different syslog formats chained so it happens that some don't match because the source field ($from) doesn't exist or is empty.