From e39425b2025a018ab62b7accf19751093403e09c Mon Sep 17 00:00:00 2001
From: Kevin Whitaker <eyecreate@eyecreate.org>
Date: Sun, 19 Nov 2023 21:20:24 +0000
Subject: [PATCH] added more details to logs

---
 main.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/main.py b/main.py
index 9897ddd..37a1ff1 100644
--- a/main.py
+++ b/main.py
@@ -20,8 +20,8 @@ from secrets import WIFI_SSID, WIFI_PASSWORD, NEXTCLOUD_USERNAME, NEXTCLOUD_PASS
 try:
     ih.network_connect_better(WIFI_SSID, WIFI_PASSWORD)
 except RuntimeError as e:
-    print(e)
-    write_err(e)
+    print(f' connect error: {e}')
+    write_err(f' connect error: {e}')
     #Likely a network oops, try starting again
     uos.umount("/sd")
     machine.soft_reset()
@@ -31,8 +31,8 @@ try:
     nc.set_auth(NEXTCLOUD_USERNAME, NEXTCLOUD_PASSWORD)
     response = nc.get_folder_items("eink-frame")
 except OSError as e:
-    print(e)
-    write_err(e)
+    print(f' nextcloud error: {e}')
+    write_err(f' nextcloud error: {e}')
     #Likely a network oops, try starting again
     uos.umount("/sd")
     machine.soft_reset()
-- 
GitLab