From ae67fe74fb1c8b2146842118f7f680e3f0b7f85a Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Thu, 28 Oct 2021 14:02:13 -0700 Subject: [PATCH] Whoops, restore logging to most of the CLI tools. #745 --- cli/src/main.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cli/src/main.rs b/cli/src/main.rs index 405d16f490..9a49c70a4b 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -195,6 +195,16 @@ enum Command { #[tokio::main] async fn main() -> Result<()> { + let cmd = Command::from_args(); + + // All but a few commands want logging + if !matches!( + cmd, + Command::DumpJSON { .. } | Command::PickGeofabrik { .. }, + ) { + abstutil::logger::setup(); + } + // Short implementations can stay in this file, but please split larger subcommands to their // own module. match Command::from_args() {