Move these print statements to log.debug.

This commit is contained in:
voussoir 2020-09-27 10:47:32 -07:00
parent 51b2642be9
commit da67740689

View file

@ -851,7 +851,7 @@ class PDBPhotoMixin:
query = f'{"-" * 80}\n{query}\n{"-" * 80}' query = f'{"-" * 80}\n{query}\n{"-" * 80}'
print(query, bindings) self.log.debug('\n%s %s', query, bindings)
#explain = self.sql_execute('EXPLAIN QUERY PLAN ' + query, bindings) #explain = self.sql_execute('EXPLAIN QUERY PLAN ' + query, bindings)
#print('\n'.join(str(x) for x in explain.fetchall())) #print('\n'.join(str(x) for x in explain.fetchall()))
generator = self.sql_select(query, bindings) generator = self.sql_select(query, bindings)
@ -894,7 +894,7 @@ class PDBPhotoMixin:
yield warning_bag yield warning_bag
end_time = time.time() end_time = time.time()
print('Search took:', end_time - start_time) self.log.debug('Search took %s.', end_time - start_time)
#################################################################################################### ####################################################################################################