less messy startup messages

This commit is contained in:
ed
2021-10-29 23:43:09 +02:00
parent de735f3a45
commit c951b66ae0
2 changed files with 10 additions and 3 deletions

View File

@@ -146,7 +146,12 @@ class HttpSrv(object):
fno = srv_sck.fileno()
msg = "subscribed @ {}:{} f{}".format(ip, port, fno)
self.log(self.name, msg)
self.broker.put(False, "cb_httpsrv_up")
def fun():
self.broker.put(False, "cb_httpsrv_up")
threading.Thread(target=fun).start()
while not self.stopping:
if self.args.log_conn:
self.log(self.name, "|%sC-ncli" % ("-" * 1,), c="1;30")