diff options
| author | Peter Hall <peterjoel@gmail.com> | 2020-10-07 12:55:01 +0100 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2021-10-31 21:43:29 -0500 |
| commit | c1eab154c9139a281d17c5ae70151bac4fcbf60f (patch) | |
| tree | 6dd1135b26dd96d55a1e1413f432ce080c52b1c9 /src/git-rustfmt | |
| parent | 5ce82e15133501cdfa96d58370e9b4c3873546b1 (diff) | |
Use a custom env var for log settings intead of default RUST_LOG
# Conflicts: # src/rustfmt/main.rs
Diffstat (limited to 'src/git-rustfmt')
| -rw-r--r-- | src/git-rustfmt/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git-rustfmt/main.rs b/src/git-rustfmt/main.rs index 16f5d1dd4f2..579778edbe7 100644 --- a/src/git-rustfmt/main.rs +++ b/src/git-rustfmt/main.rs @@ -170,7 +170,7 @@ impl Config { } fn main() { - env_logger::init(); + env_logger::Builder::from_env("RUSTFMT_LOG").init(); let opts = make_opts(); let matches = opts |
