Skip to content

Logging framework now supports caching of entries during integrity check#303

Merged
ligenxxxx merged 1 commit intohd-zero:mainfrom
SumolX:log_framework_update
Jul 6, 2023
Merged

Logging framework now supports caching of entries during integrity check#303
ligenxxxx merged 1 commit intohd-zero:mainfrom
SumolX:log_framework_update

Conversation

@SumolX
Copy link
Contributor

@SumolX SumolX commented Jun 27, 2023

Logger now writes to a cache prior to offloading the entries to the SD Card. The interval of offloading the cache to disk is done once a second. This caching allows us to continue to log during the integrity check when booting up the goggles or inserting a disk and once the sd card is available then we offload to the disk. The max size of the cache is 1 MByte, then a rollover is performed. This will allow users who may encounter errors during flight or bench testing to turn on logging via the Storage Page and we will have a complete capture of all messages since bootup.

We also now log system commands:
system_exec() is intended for one-line commands
system_script() is intended for invoking shell scripts, the standard output/error are also logged if any are produced.

@ligenxxxx ligenxxxx merged commit 24c47f2 into hd-zero:main Jul 6, 2023
@SumolX SumolX deleted the log_framework_update branch July 6, 2023 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants