Skip to content

Commit

Permalink
Refs #14. Added device register error message to log.
Browse files Browse the repository at this point in the history
  • Loading branch information
SBriere committed Apr 16, 2024
1 parent ff7e053 commit e3e03f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/servers/handlers/OpenTeraAppleWatchRequestHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def do_GET(self):
# Save token for future use!
self.base_server.update_device_token(device_name, response.json()['device_token'])
else:
logging.warning("Register failed.")
logging.warning("Register failed: " + str(response.status_code) + " - " + response.reason)
self.forward_opentera_response(response)
else:
response = requests.get(url=self.base_server.opentera_server_url + query_path, params=query_params,
Expand Down

0 comments on commit e3e03f3

Please sign in to comment.