mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 15:02:59 +03:00
Whoops, restore logging to most of the CLI tools. #745
This commit is contained in:
parent
ef6942f83e
commit
ae67fe74fb
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user