Skip to content

Commit b88c3b7

Browse files
committed
portal: eeeeh, portal API was failing because it was unecessarily trying to start sse-related stuff ?
1 parent 33c7cba commit b88c3b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/__init__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ def init_logging(interface="cli", debug=False, quiet=False, logdir="/var/log/yun
200200
logging_configuration["loggers"]["moulinette"]["handlers"].append("cli")
201201
logging_configuration["root"]["handlers"].append("cli")
202202

203-
from yunohost.utils.sse import start_log_broker
203+
if interface == "api":
204+
from yunohost.utils.sse import start_log_broker
205+
start_log_broker()
204206

205-
start_log_broker()
206207
configure_logging(logging_configuration)

0 commit comments

Comments
 (0)