Skip to content

Commit

Permalink
fix logs for accurate reporting in console
Browse files Browse the repository at this point in the history
  • Loading branch information
ftylitak committed Jul 9, 2024
1 parent 1224124 commit 1b511b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion insighioNode/apps/demo_console/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,11 @@ def executeConnectAndUpload(cfg, measurements, is_first_run, always_on):
network.prepareForGPS()

if not message_sent:
logging.info("Message transmission failed, storing for later")
if cfg.get("_STORE_MEASUREMENT_IF_FAILED_CONNECTION"):
logging.info("Message transmission failed, storing for later")
scenario_utils.storeMeasurement(measurements, True)
else:
logging.info("Message transmission failed, ignoring message")

# disconnect from network
if not always_on or not is_connected:
Expand Down

0 comments on commit 1b511b2

Please sign in to comment.