Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
log-search: Fix URLs for non-zulipchat.com hosts.
Alex Vandiverb1749259d444
diff --git a/scripts/log-search b/scripts/log-searchindex a2f98876f85..d240c183f0c 100755--- a/scripts/log-search+++ b/scripts/log-search@@ -11,6 +11,15 @@ from typing import Callable, TextIOZULIP_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))sys.path.append(ZULIP_PATH)++from scripts.lib.setup_path import setup_path++setup_path()++os.environ["DJANGO_SETTINGS_MODULE"] = "zproject.settings"++from django.conf import settings+from scripts.lib.zulip_tools import BOLD, CYAN, ENDC, FAIL, GRAY, OKBLUE@@ -314,12 +323,14 @@ def print_line(if filter_type != FilterType.HOSTNAME:hostname = match["hostname"]if hostname is None:- hostname = "???.zulipchat.com"+ hostname = "???." + settings.EXTERNAL_HOSTelif not args.nginx:- if hostname == "root":+ if hostname != "root":+ hostname += "." + settings.EXTERNAL_HOST+ elif settings.EXTERNAL_HOST == "zulipchat.com":hostname = "zulip.com"else:- hostname += ".zulipchat.com"+ hostname = settings.EXTERNAL_HOSTurl = "https://" + hostname + urluser_id = ""