about summary refs log tree commit diff
path: root/src/format-diff/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/format-diff/main.rs')
-rw-r--r--src/format-diff/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/format-diff/main.rs b/src/format-diff/main.rs
index c751932273b..655aeda42bf 100644
--- a/src/format-diff/main.rs
+++ b/src/format-diff/main.rs
@@ -64,7 +64,7 @@ pub struct Opts {
 }
 
 fn main() {
-    env_logger::init();
+    env_logger::Builder::from_env("RUSTFMT_LOG").init();
     let opts = Opts::from_args();
     if let Err(e) = run(opts) {
         println!("{}", e);