diff --git a/maloja/controller.py b/maloja/controller.py index 7467e22..98b8f82 100755 --- a/maloja/controller.py +++ b/maloja/controller.py @@ -107,8 +107,9 @@ def getInstanceSupervisor(): def start(): setup() try: - p = subprocess.Popen(["python3","-m","maloja.server"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL,cwd=DATA_DIR) - sp = subprocess.Popen(["python3","-m","maloja.supervisor"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL,cwd=DATA_DIR) + with open("logs/stderr.log","w") as logf: + p = subprocess.Popen(["python3","-m","maloja.server"],stdout=subprocess.DEVNULL,stderr=logf,cwd=DATA_DIR) + sp = subprocess.Popen(["python3","-m","maloja.supervisor"],stdout=subprocess.DEVNULL,stderr=logf,cwd=DATA_DIR) print(col["green"]("Maloja started!") + " PID: " + str(p.pid)) from doreah import settings