Add some more IPC logging.
This commit is contained in:
parent
ff24ba5437
commit
73cb981ebb
@ -187,7 +187,10 @@ class IPCServer(QObject):
|
|||||||
if self._socketopts_ok: # pragma: no cover
|
if self._socketopts_ok: # pragma: no cover
|
||||||
# If we use setSocketOptions on Unix with Qt < 5.4, we get a
|
# If we use setSocketOptions on Unix with Qt < 5.4, we get a
|
||||||
# NameError while listening...
|
# NameError while listening...
|
||||||
|
log.ipc.debug("Calling setSocketOptions")
|
||||||
self._server.setSocketOptions(QLocalServer.UserAccessOption)
|
self._server.setSocketOptions(QLocalServer.UserAccessOption)
|
||||||
|
else:
|
||||||
|
log.ipc.debug("Not calling setSocketOptions")
|
||||||
|
|
||||||
def _remove_server(self):
|
def _remove_server(self):
|
||||||
"""Remove an existing server."""
|
"""Remove an existing server."""
|
||||||
@ -355,10 +358,12 @@ class IPCServer(QObject):
|
|||||||
if not path:
|
if not path:
|
||||||
log.ipc.error("In update_atime with no server path!")
|
log.ipc.error("In update_atime with no server path!")
|
||||||
return
|
return
|
||||||
|
log.ipc.debug("Touching {}".format(path))
|
||||||
os.utime(path)
|
os.utime(path)
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
"""Shut down the IPC server cleanly."""
|
"""Shut down the IPC server cleanly."""
|
||||||
|
log.ipc.debug("Shutting down IPC")
|
||||||
if self._socket is not None:
|
if self._socket is not None:
|
||||||
self._socket.deleteLater()
|
self._socket.deleteLater()
|
||||||
self._socket = None
|
self._socket = None
|
||||||
|
Loading…
Reference in New Issue
Block a user