Skip to content

Commit

Permalink
Clean up debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jul 2, 2017
1 parent cba1414 commit 4edb549
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def collect_metrics(ssh, client, last_event_record_id):
ssh.connect(client['ip'], port=client['port'],
username=client['username'], password=client['password'])

print('***** DEBUG after connect')
print('***** CONNECTED TO', client['ip'])

if client['platform'] == 'Linux':
destination = '/tmp/agent.py'
Expand All @@ -53,8 +53,6 @@ def collect_metrics(ssh, client, last_event_record_id):
# copy the agent script to the client system
_agent_scp(ssh, destination)

print('***** DEBUG after copy')

# don't encrypt on the client b/c we're running through ssh
# which is already encryted. The requirement says the client should
# encrypt the response but that is not necessary! See the design doc.
Expand All @@ -69,8 +67,6 @@ def collect_metrics(ssh, client, last_event_record_id):

ssh.close()

print('***** DEBUG before return')

return json.loads(response)


Expand Down

0 comments on commit 4edb549

Please sign in to comment.