diff --git a/tests/test_nginx_vhosts.py b/tests/test_nginx_vhosts.py index 69331ca497290e8822d69ccbe60410da96c7fbb1..a453f9602b2cc0c382df83e6b1a8b37d45511e73 100755 --- a/tests/test_nginx_vhosts.py +++ b/tests/test_nginx_vhosts.py @@ -103,10 +103,10 @@ def test_vhost( try: ip = socket.gethostbyname(domain) except Exception as e: - ip_error = f"domain: not resolved {e}" + ip_error = f"{domain} not resolved: {e}" else: if ip != "127.0.0.1": - ip_warning = f"domain: resolve to {ip} instead of 127.0.0.1" + ip_warning = f"{domain} resolve to {ip} instead of 127.0.0.1" if ip_error: if resolution_ignored and domain in resolution_ignored: u.info(f"{ip_error} (ignored)") @@ -137,11 +137,11 @@ def test_vhost( or domain == "localhost" and code not in (200, 401, 403, 404) ): - u.error(f"status: {code}, {req_time}ms") + u.error(f"{domain} status: {code}, {req_time}ms") req_error = True else: if req_time > 10000: - u.warning(f"status: {code}, {req_time}ms") + u.warning(f"{domain} status: {code}, {req_time}ms") warnings += 1 if "mediaserver" in name and wowza_dir: # test /streaming url @@ -159,10 +159,10 @@ def test_vhost( else: code = req.status_code if code != 200: - u.error(f"streaming: {code}, {req_time}ms") + u.error(f"{domain} streaming: {code}, {req_time}ms") req_error = True elif req_time > 10000: - u.warning(f"streaming: {code}, {req_time}ms") + u.warning(f"{domain} streaming: {code}, {req_time}ms") warnings += 1 tested += 1