Skip to content

Commit 0119207

Browse files
authored
Merge pull request #2028 from joto/sql-timer-debug-mode
Generalization: Output SQL query duration in debug mode only
2 parents d887a2e + 5feb43b commit 0119207

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gen/osm2pgsql-gen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ class genproc_t
367367
util::timer_t timer_sql;
368368
pg_conn_t const db_connection{m_conninfo};
369369
db_connection.exec(sql);
370-
log_info("SQL command took {}.",
371-
util::human_readable_duration(timer_sql.stop()));
370+
log_debug("SQL command took {}.",
371+
util::human_readable_duration(timer_sql.stop()));
372372

373373
return 0;
374374
}

0 commit comments

Comments
 (0)