Commit 4a46c384 authored by Anael Beutot's avatar Anael Beutot
Browse files

Debug

parent db6f4f62
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -119,6 +119,7 @@ class RemoteShell(object):
        self.proto, proto = None, self.proto  # prevents multiple calls to
                                              # close method
        self.close()
        logger.debug('Tunnel closed by sjRPC')

    def close(self):
        if self.process.poll() is None:
@@ -296,6 +297,7 @@ class Handler(BasePlugin):
        """Create a shell tunnel and return the label of the created tunnel.

        """
        logger.debug('Opening shell')
        remote_shell = RemoteShell(conn, shell)
        self.shells[remote_shell.label] = remote_shell
        return remote_shell.label
@@ -303,6 +305,7 @@ class Handler(BasePlugin):
    @threadless
    def shell_resize(self, label, row, col, xpixel, ypixel):
        """Resize the shell's attached terminal."""
        logger.debug('Shell resize')
        self.shells[label].resize(row, col, xpixel, ypixel)

    @pass_connection