diff --git a/haproxy/filters.py b/haproxy/filters.py index 1a295b3..e32337c 100644 --- a/haproxy/filters.py +++ b/haproxy/filters.py @@ -45,7 +45,9 @@ def filter_path(path): """ def filter_func(log_line): - return path in log_line.http_request_path + http_request_path = log_line.http_request_path + if http_request_path: + return path in log_line.http_request_path return filter_func