From 4735be85a79eb9953de9058c9a9cda4379c574fc Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Mon, 26 Feb 2024 15:03:21 +0000 Subject: [PATCH] log-search: Fix attempts to limit to events requests in Django logs. --- scripts/log-search | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/log-search b/scripts/log-search index 03e5a2ffc6..ab95070d83 100755 --- a/scripts/log-search +++ b/scripts/log-search @@ -284,6 +284,10 @@ def parse_filters( filter_funcs = [] filter_terms = [] + if args.events and not args.nginx: + logging.warning("Adding --nginx -- /events requests do not appear in Django logs.") + args.nginx = True + for filter_term in args.filter_terms: if re.match(r"[1-5][0-9][0-9]$", filter_term): filter_func = lambda m, t=filter_term: m["code"] == t