Skip to content

elbepack/log.py: use info logging level by default instead of debugging - #476

Closed
kanavin wants to merge 1 commit into
Linutronix:masterfrom
kanavin:add-base-extended-validation-test-tweaks
Closed

elbepack/log.py: use info logging level by default instead of debugging#476
kanavin wants to merge 1 commit into
Linutronix:masterfrom
kanavin:add-base-extended-validation-test-tweaks

Conversation

@kanavin

@kanavin kanavin commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Debugging level should never be set by default and should always be an explicit opt-in via a command line option or an environment variable. The reason is that depending on what logging handlers are set up, and how big the debugging output is for particular code paths, the sheer volume of text can overwhelm the machine or the network.

The particular issue here is pytest, which sets up its own handlers for logging that capture all of the logging in RAM while the test is running. When pytest performs a base image (or cdrom) upload to initvm, which sends chunks of data to the external binascii module, said module logs lots of debugging for each chunk. This quickly exhausts the RAM on my laptop, which is a not-unreasonable 16G.

Debugging level should never be set by default and should always
be an explicit opt-in via a command line option or an environment
variable. The reason is that depending on what logging handlers are
set up, and how big the debugging output is for particular code paths,
the sheer volume of text can overwhelm the machine or the network.

The particular issue here is pytest, which sets up its own handlers for
logging that *capture all of the logging in RAM* while the test is running.
When pytest performs a base image (or cdrom) upload to initvm, which sends
chunks of data to the external binascii module, said module logs lots of debugging
*for each chunk*. This quickly exhausts the RAM on my laptop, which is a
not-unreasonable 16G.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
@kanavin
kanavin force-pushed the add-base-extended-validation-test-tweaks branch from f634200 to 247f957 Compare August 12, 2026 10:50
@t-8ch

t-8ch commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Thanks, applied.

@t-8ch t-8ch closed this Aug 12, 2026
@kanavin
kanavin deleted the add-base-extended-validation-test-tweaks branch August 12, 2026 11:42
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