Skip to content

Commit

Permalink
fix long bounds calculation message
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Dec 5, 2023
1 parent 17e2286 commit 2aa736f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions martin/src/pg/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ impl PgConfig {
DEFAULT_BOUNDS_TIMEOUT.add(Duration::from_secs(1)),
|| {
if pg.auto_bounds() == BoundsCalcType::Skip {
warn!("Discovering tables in PostgreSQL database '{}' is taking too long. Make sure your table geo columns have a GIS index, or use '--auto-bounds skip' CLI/config to skip bbox calculation.", pg.get_id());
} else {
warn!("Discovering tables in PostgreSQL database '{}' is taking too long. Bounds calculation is already disabled. You may need to tune your database.", pg.get_id());
} else {
warn!("Discovering tables in PostgreSQL database '{}' is taking too long. Make sure your table geo columns have a GIS index, or use '--auto-bounds skip' CLI/config to skip bbox calculation.", pg.get_id());
}
},
);
Expand Down

0 comments on commit 2aa736f

Please sign in to comment.