From 8ef6887a0b2dde206485a6d0396ef96efd55a769 Mon Sep 17 00:00:00 2001 From: Justin Ross Date: Sat, 6 Jan 2024 08:49:33 -0500 Subject: [PATCH] Quiet livereload --- python/transom/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/transom/main.py b/python/transom/main.py index 139059c..61f92f8 100644 --- a/python/transom/main.py +++ b/python/transom/main.py @@ -168,7 +168,8 @@ def serve(self, port=8080): watcher.start() try: - livereload = _subprocess.Popen(f"livereload {self.output_dir} --wait 100", shell=True) + livereload = _subprocess.Popen(f"livereload {self.output_dir} --wait 100", + shell=True, stdout=_subprocess.DEVNULL, stderr=_subprocess.DEVNULL) except _subprocess.CalledProcessError as e: # pragma: nocover self.notice("Failed to start the livereload server, so I won't auto-reload the browser") self.notice("Use 'npm install -g livereload' to install the server")