Log all socket errors

This commit is contained in:
Florian Bruhin 2014-10-13 22:38:40 +02:00
parent 103ba3b8b0
commit 4617aee317

View File

@ -65,6 +65,8 @@ class IPCServer(QObject):
@pyqtSlot(int)
def on_error(self, error):
"""Convenience method which calls _socket_error on an error."""
log.ipc.debug("Socket error {}: {}".format(
self._socket.error(), self._socket.errorString()))
if error != QLocalSocket.PeerClosedError:
_socket_error("handling IPC connection", self._socket)