mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	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:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user