process_fts_updates: Make normal development startup silent.

We run this tool at DEBUG log level in production, so we will still
see the notice on startup there; this avoids a spammy line in the
development environment output..
This commit is contained in:
Tim Abbott 2020-12-20 12:18:01 -08:00
parent 1f036f9bde
commit 4ee58f408b
1 changed files with 2 additions and 2 deletions

View File

@ -137,13 +137,13 @@ while True:
logger.warning("In recovery; sleeping")
time.sleep(5)
logger.info("process_fts_updates: listening for search index updates")
logger.debug("process_fts_updates: listening for search index updates")
cursor.execute("LISTEN fts_update_log;")
# Catch up on any historical columns
while True:
rows_updated = update_fts_columns(cursor)
notice = f"Processed {rows_updated} rows catching up"
notice = f"process_fts_updates: Processed {rows_updated} rows catching up"
if rows_updated > 0:
logger.info(notice)
else: