gforcada / haproxy_log_analysis

HAProxy log analyzer
https://pypi.org/project/haproxy_log_analysis
GNU General Public License v3.0
88 stars 35 forks source link

Update filters.py #41

Open m4ddav3 opened 4 years ago

m4ddav3 commented 4 years ago

Some log lines don't contain a 'path' field, so filter_path fails when it is used. Checking the value first prevents it from bailing out.

gforcada commented 4 years ago

Hi! Thanks for the PR! Indeed, if the path is missing it will fail. Do you have a log line that would show this?

If you could go the extra bit of adding a test and a changelog entry, I would merge it right away 🙂