Skip to content
Snippets Groups Projects
Commit 4a46c384 authored by Anael Beutot's avatar Anael Beutot
Browse files

Debug

parent db6f4f62
No related branches found
No related tags found
No related merge requests found
...@@ -119,6 +119,7 @@ class RemoteShell(object): ...@@ -119,6 +119,7 @@ class RemoteShell(object):
self.proto, proto = None, self.proto # prevents multiple calls to self.proto, proto = None, self.proto # prevents multiple calls to
# close method # close method
self.close() self.close()
logger.debug('Tunnel closed by sjRPC')
def close(self): def close(self):
if self.process.poll() is None: if self.process.poll() is None:
...@@ -296,6 +297,7 @@ class Handler(BasePlugin): ...@@ -296,6 +297,7 @@ class Handler(BasePlugin):
"""Create a shell tunnel and return the label of the created tunnel. """Create a shell tunnel and return the label of the created tunnel.
""" """
logger.debug('Opening shell')
remote_shell = RemoteShell(conn, shell) remote_shell = RemoteShell(conn, shell)
self.shells[remote_shell.label] = remote_shell self.shells[remote_shell.label] = remote_shell
return remote_shell.label return remote_shell.label
...@@ -303,6 +305,7 @@ class Handler(BasePlugin): ...@@ -303,6 +305,7 @@ class Handler(BasePlugin):
@threadless @threadless
def shell_resize(self, label, row, col, xpixel, ypixel): def shell_resize(self, label, row, col, xpixel, ypixel):
"""Resize the shell's attached terminal.""" """Resize the shell's attached terminal."""
logger.debug('Shell resize')
self.shells[label].resize(row, col, xpixel, ypixel) self.shells[label].resize(row, col, xpixel, ypixel)
@pass_connection @pass_connection
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment