mirror of
https://github.com/vale981/rmview
synced 2025-03-05 09:11:39 -05:00
Proper logging
This commit is contained in:
parent
001e9d2ff0
commit
b046d67107
1 changed files with 4 additions and 4 deletions
|
@ -96,19 +96,19 @@ class FrameBufferWorker(QRunnable):
|
|||
self.signals = FBWSignals()
|
||||
|
||||
def stop(self):
|
||||
print("Stopping")
|
||||
log.info("Stopping framebuffer thread...")
|
||||
reactor.callFromThread(reactor.stop)
|
||||
self.ssh.exec_command("killall rM-vnc-server")
|
||||
print("Stopped")
|
||||
log.info("Framebuffer thread stopped")
|
||||
self._stop = True
|
||||
|
||||
@pyqtSlot()
|
||||
def run(self):
|
||||
try:
|
||||
_,out,_ = self.ssh.exec_command("/sbin/insmod $HOME/mxc_epdc_fb_damage.ko")
|
||||
out.channel.recv_exit_status()
|
||||
log.debug("Insmod returned %d", out.channel.recv_exit_status())
|
||||
_,_,out = self.ssh.exec_command("$HOME/rM-vnc-server")
|
||||
print(next(out))
|
||||
log.info(next(out))
|
||||
self.vncClient = internet.TCPClient(self.ssh.hostname, 5900, RFBTestFactory(self.signals))
|
||||
self.vncClient.startService()
|
||||
reactor.run(installSignalHandlers=0)
|
||||
|
|
Loading…
Add table
Reference in a new issue