canonical / craft-cli

https://canonical-craft-cli.readthedocs-hosted.com/en/latest/
GNU Lesser General Public License v3.0
9 stars 13 forks source link

Capture warnings and present them to developers. #232

Open lengau opened 5 months ago

lengau commented 5 months ago

What needs to get done

Use logging.captureWarnings to capture warnings and present them in a developer-friendly manner. This should be done in a way that hides them from the user by default.

Why it needs to get done

Currently we don't capture warnings, so code that raises warnings that don't get ignored could cause weird output.