Calibre: Log errors on wireless connection failures (#9914)

Also, get rid of the weird and clunky `failed_connect_callback` thingy, because it makes no sense?

Re: #9908
This commit is contained in:
NiLuJe
2022-12-17 22:37:23 +01:00
committed by GitHub
parent 932ed44a9f
commit f6421abab0
2 changed files with 33 additions and 30 deletions

View File

@@ -17,7 +17,7 @@ function StreamMessageQueue:start()
self.socket = czmq.zsocket_new(self.context, C.ZMQ_STREAM)
self.poller = czmq.zpoller_new(self.socket, nil)
local endpoint = string.format("tcp://%s:%d", self.host, self.port)
logger.warn("connect to endpoint", endpoint)
logger.dbg("connecting to endpoint", endpoint)
local rc = czmq.zsocket_connect(self.socket, endpoint)
if rc ~= 0 then
error("cannot connect to " .. endpoint)