From b24e84a4574028315dd163a5c32b8d4beabc9c76 Mon Sep 17 00:00:00 2001 From: Edward <9326037+edwardoliveira@users.noreply.github.com> Date: Wed, 11 Nov 2020 16:15:52 -0300 Subject: [PATCH] Update sapl-logs/python-indexer.py --- sapl-logs/python-indexer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl-logs/python-indexer.py b/sapl-logs/python-indexer.py index 47160f5ae..23806ee4b 100755 --- a/sapl-logs/python-indexer.py +++ b/sapl-logs/python-indexer.py @@ -175,7 +175,7 @@ def follow(fd): @exp_backoff def check_solr(): r = requests.get(SOLR_BASE_URL) - if r.status_code == 200: + if r.ok and r.status_code == 200: print(f"Solr server at {SOLR_BASE_URL} is up and running...") print("Checking collection health...")