Skip to content

Commit c412bfb

Browse files
authored
Add hardware version to the general info log at the beginning of main.py (#7)
* inserted attribute to log message to include hardware version at the beginning of program * removing the published date
1 parent dcf7bbb commit c412bfb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

main.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
except ImportError:
2020
import board
2121

22+
import os
23+
2224
import lib.pysquared.functions as functions
2325
import lib.pysquared.nvm.register as register
2426
import lib.pysquared.pysquared as pysquared
@@ -40,7 +42,11 @@
4042
colorized=False,
4143
)
4244

43-
logger.info("Booting", software_version=__version__, published_date="November 19, 2024")
45+
logger.info(
46+
"Booting",
47+
hardware_version=os.uname().version,
48+
software_version=__version__,
49+
)
4450

4551
loiter_time: int = 5
4652

0 commit comments

Comments
 (0)