Skip to content

Commit

Permalink
updated logging
Browse files Browse the repository at this point in the history
  • Loading branch information
PrabhanshuAttri committed Mar 18, 2020
1 parent 9495901 commit ed7f440
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hardware/CommunicationsPi/lan_client.py
Expand Up @@ -8,13 +8,14 @@

url = os.environ["LAN_SERVER"]

logging.info('Pinging')
while True:
try:
payload = {
'key1': 'value1',
'key2': 'value2'
}
logging.info('pinging: ' + url)
logging.info('data: ' + json.dumps(payload))
response = requests.post(url, data=payload)
response.raise_for_status()
except HTTPError as http_err:
Expand Down

0 comments on commit ed7f440

Please sign in to comment.