canonical / canonical/craft-cli

Capture warnings and present them to developers.

Open
#232 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
16
Forks
27
Avg merge
2d 1h
Merged PRs (30d)
12

Description

### What needs to get done

Use [`logging.captureWarnings`](https://docs.python.org/3/library/logging.html#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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.