Skip to content

Commit 10749a1

Browse files
committed
More logging
1 parent 8048295 commit 10749a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

logger/log.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ def send_to_rest(path, t):
142142
for r in records:
143143
data = {"datetime": r[0], "sensor_id": r[1], "value": r[2]}
144144
data_json = json.dumps(data)
145+
print("Sending to " + full_url + "...")
145146
response = requests.post(full_url, data=data_json, headers=headers, timeout=10)
147+
print("HTTP response", response)
146148
if response.status_code == requests.codes.ok:
147149
delete_record_from_db(path, r)
148150

0 commit comments

Comments
 (0)