Skip to content
Snippets Groups Projects
Commit 21bdf159 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

remove success message to ave less verbose output

parent 0dc14b63
No related branches found
No related tags found
No related merge requests found
...@@ -119,8 +119,6 @@ def test_vhost( ...@@ -119,8 +119,6 @@ def test_vhost(
ip_warning = None ip_warning = None
else: else:
u.warning(ip_warning) u.warning(ip_warning)
else:
u.success("domain: resolve to 127.0.0.1")
# test url # test url
req_error = False req_error = False
try: try:
...@@ -145,8 +143,6 @@ def test_vhost( ...@@ -145,8 +143,6 @@ def test_vhost(
if req_time > 10000: if req_time > 10000:
u.warning(f"status: {code}, {req_time}ms") u.warning(f"status: {code}, {req_time}ms")
warnings += 1 warnings += 1
else:
u.success(f"status: {code}, {req_time}ms")
if "mediaserver" in name and wowza_dir: if "mediaserver" in name and wowza_dir:
# test /streaming url # test /streaming url
try: try:
...@@ -168,8 +164,6 @@ def test_vhost( ...@@ -168,8 +164,6 @@ def test_vhost(
elif req_time > 10000: elif req_time > 10000:
u.warning(f"streaming: {code}, {req_time}ms") u.warning(f"streaming: {code}, {req_time}ms")
warnings += 1 warnings += 1
else:
u.success(f"streaming: {code}, {req_time}ms")
tested += 1 tested += 1
if ip_warning: if ip_warning:
...@@ -177,6 +171,7 @@ def test_vhost( ...@@ -177,6 +171,7 @@ def test_vhost(
if ip_error or req_error: if ip_error or req_error:
errors += 1 errors += 1
return tested, warnings, errors return tested, warnings, errors
...@@ -191,10 +186,7 @@ def main(): ...@@ -191,10 +186,7 @@ def main():
# check that Wowza is installed # check that Wowza is installed
wowza_dir = "/usr/local/WowzaStreamingEngine" wowza_dir = "/usr/local/WowzaStreamingEngine"
if not Path(wowza_dir).exists(): if not Path(wowza_dir).exists():
u.info(f"wowza is not installed ('wowza_dir' does not exist).")
wowza_dir = None wowza_dir = None
else:
u.info("wowza is installed, /streaming/ will be tested on mediaserver vhosts.")
# get envsetup conf # get envsetup conf
conf = u.load_conf() conf = u.load_conf()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment