Skip to content

Commit 5ec00da

Browse files
committed
fix: allow warn logging to be disabled via RULES_PYTHON_REPO_DEBUG_VERBOSITY
1 parent 965dd51 commit 5ec00da

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Unreleased changes template.
7878
* (toolchains) Do not try to run `chmod` when downloading non-windows hermetic toolchain
7979
repositories on Windows. Fixes
8080
[#2660](https://github.com/bazel-contrib/rules_python/issues/2660).
81+
* (logging) Allow repo rule logging level to be set to `FAIL` via the `RULES_PYTHON_REPO_DEBUG_VERBOSITY` environment variable.
8182

8283
{#v0-0-0-added}
8384
### Added

python/private/repo_utils.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def _logger(mrctx, name = None):
5656

5757
verbosity = {
5858
"DEBUG": 2,
59+
"FAIL": -1,
5960
"INFO": 1,
6061
"TRACE": 3,
6162
}.get(verbosity_level, 0)

0 commit comments

Comments
 (0)