← Back to issue list

Support CRAFT_VERBOSITY_LEVEL

View original Github issue

Metadata

Project
craft-application
Number
#264
Type
issue
State
closed
Author
tigarmo
Labels
Created
Updated
Closed

Current evaluation

Added support for the CRAFT_VERBOSITY_LEVEL environment variable to configure initial verbosity, matching Snapcraft's implementation. The change was merged via pull request #289 in the craft-application repository.

Suggested action:

No scores available.

Issue body

### What needs to get done The purpose of this environment variable is to set the initial verbosity level of the application's emitter. Its possible values are the values of the EmitterMode (as strings), see [how Snapcraft uses it](https://github.com/canonical/snapcraft/blob/8.0.4/snapcraft/cli.py#L163) ### Why it needs to get done For parity, as users expect to be able to use this environment variable to configure the verbosity.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Added support for the CRAFT_VERBOSITY_LEVEL environment variable to configure initial verbosity, matching Snapcraft's implementation. The change was merged via pull request #289 in the craft-application repository.
qwen/qwen3.6-35b-a3b Implemented support for the CRAFT_VERBOSITY_LEVEL environment variable to configure emitter verbosity. Resolved and merged via pull request #289 in the canonical/craft-application repository.
qwen3.6-35b-a3b-mtp-q6 Implemented support for the CRAFT_VERBOSITY_LEVEL environment variable to configure emitter verbosity. The change was merged in canonical/craft-application pull request 289, fulfilling the parity requirement with Snapcraft.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3958 cli: set default verbosity level with environment variable snapcraft merged Merged. Adds SNAPCRAFT_VERBOSITY_LEVEL env var for default CLI verbosity. Author noted implementation flaws causing duplicate logs and precedence issues, opening craft-cli issue #128 for a proper fix.
78%
#4647 Setting verbosity via environment variable no longer works on 8.0.4.post33+git61228836 snapcraft closed The SNAPCRAFT_VERBOSITY_LEVEL environment variable was ignored because craft-application and snapcraft did not read or forward it. Merging pull request #4699 restored the functionality. The reporter verified the fix.
75%
#289 fix(log): allows set logging verbosity level from env craft-application merged Merged changes that enable log verbosity configuration via the CRAFT_VERBOSITY_LEVEL environment variable, defaulting to BRIEF on invalid input. Approved by two reviewers, passed CI, and updated two files.
72%
#5646 feat(snapcraft_legacy): support verbosity args snapcraft merged Merged. Implements craft-cli verbosity arguments and environment variable support for core20 commands in snapcraft_legacy, preserving --enable-developer-debug alias. Approved by reviewers and resolves #5423.
72%