From afe5195ef04e8d174358d5fca98e845cba4dc4a9 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Thu, 13 May 2021 08:42:10 +0200 Subject: [PATCH] more print --- stream.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stream.py b/stream.py index a97a019..ec8dc62 100755 --- a/stream.py +++ b/stream.py @@ -153,9 +153,10 @@ class MainHandler(tornado.web.RequestHandler): else: self.handle_stream(provider, write) else: + print("provider missing") self.set_status(404) if write: - self.write("Stream not found.") + self.write("Stream not found. (provider missing)") def handle_render(self, provider, write): if template_js is not None and template_html is not None: @@ -212,9 +213,10 @@ class MainHandler(tornado.web.RequestHandler): except Exception as e: print(e) if upstream is None: + print(f'invalid provider ({provider})') self.set_status(404) if write: - self.write("Stream not found.") + self.write("Stream not found. (invalid provider)") else: ctype = upstream_type(upstream, proxy) data = None