Whoops, restore logging to most of the CLI tools. #745

This commit is contained in:
Dustin Carlino 2021-10-28 14:02:13 -07:00
parent ef6942f83e
commit ae67fe74fb

View File

@ -195,6 +195,16 @@ enum Command {
#[tokio::main] #[tokio::main]
async fn main() -> Result<()> { 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 // Short implementations can stay in this file, but please split larger subcommands to their
// own module. // own module.
match Command::from_args() { match Command::from_args() {