summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ansible-connection3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ansible-connection b/bin/ansible-connection
index 36d2257621..7f35aa981e 100755
--- a/bin/ansible-connection
+++ b/bin/ansible-connection
@@ -131,17 +131,18 @@ class ConnectionProcess(object):
self.exception = None
(s, addr) = self.sock.accept()
signal.alarm(0)
-
signal.signal(signal.SIGALRM, self.command_timeout)
while True:
data = recv_data(s)
if not data:
break
+ self.connection._log_messages("jsonrpc request: %s" % data)
signal.alarm(self.connection.get_option('persistent_command_timeout'))
resp = self.srv.handle_request(data)
signal.alarm(0)
+ self.connection._log_messages("jsonrpc response: %s" % resp)
send_data(s, to_bytes(resp))
s.close()