Commit b8f63a37 authored by Cédric Crettaz's avatar Cédric Crettaz 🖥

Add debug for DCA Carouge fountain.

parent 84c6dfb8
......@@ -373,6 +373,9 @@ def _update_fountain_entity(sensor_dataFrame, timestamp):
json=entity
)
# Debug for JSON frame
app.logger.info('JSON: {}'.format(entity))
if not (200 <= r.status_code < 300):
app.logger.error('HTTP status code not 2xx, something went wrong..')
app.logger.error(r.status_code)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment