1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Added log output when starting server via controller

This commit is contained in:
Krateng 2019-12-14 16:18:20 +01:00
parent e856130e19
commit 2029e5d522

View File

@ -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