Skip to content

Commit 796814f

Browse files
author
guoping.liu
committed
update network log
1 parent 2fff32c commit 796814f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supervisor/network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def _handle_disconnect_status(self):
249249
try:
250250
script_path = "/lib/thirdreality/resetupwifi.sh"
251251
if os.path.exists(script_path):
252-
self.logger.warning(f"Network disconnected: ({self.disconnect_tick}), triggering async {script_path}")
252+
self.logger.warning(f"[!]Network disconnected: ({self.disconnect_tick}), triggering async {script_path}")
253253
def _run_resetupwifi():
254254
try:
255255
# Run asynchronously and detach outputs so failures won't affect main flow
@@ -262,7 +262,7 @@ def _run_resetupwifi():
262262
self.logger.info(f"resetupwifi.sh not found at {script_path}, skipping 30-minute action")
263263
except Exception as e:
264264
self.logger.warning(f"Error scheduling 30-minute resetupwifi action: {e}")
265-
if self.disconnect_tick == 1440:
265+
elif self.disconnect_tick == 1440:
266266
#reboot the device
267267
self.logger.warning(f"Network disconnected: ({self.disconnect_tick}), rebooting the device")
268268
self.supervisor.set_led_state(LedState.REBOOT)

0 commit comments

Comments
 (0)