1
0
mirror of https://github.com/gryf/ferrit.git synced 2026-03-03 07:15:45 +01:00

Fix global_request logging

The msg fiels is paramiko Message object.
It cannot be converted simply via str().
This commit is contained in:
Szymon Datko
2019-10-25 15:25:48 +02:00
committed by gryf
parent c026194a03
commit 1d9d69cca9

View File

@@ -99,7 +99,7 @@ class Server(paramiko.ServerInterface):
def check_global_request(self, kind, msg): def check_global_request(self, kind, msg):
LOG.debug('%s', inspect.stack()[0][3]) LOG.debug('%s', inspect.stack()[0][3])
LOG.debug('kind: %s, msg: %s', kind, str(msg)) LOG.debug('kind: %s, msg: %s', kind, msg.get_text())
return True return True
def check_channel_env_request(self, channel, name, value): def check_channel_env_request(self, channel, name, value):