Back to inserting every log

This commit is contained in:
Jon Herron 2023-02-04 12:55:48 -05:00
parent 8ff42f1b1b
commit 3b5763e8d0
1 changed files with 1 additions and 1 deletions

View File

@ -243,5 +243,5 @@ class DBHandler(logging.Handler):
# so at some point we are going to insert logs.
# we don't want to insert on every log, so we will insert every 100 logs, which is just about as fast as inserting
# on every 1,000 logs. if we get deadlocks in the database, this can be changed to 1 in order to insert on every log.
if len(self.logs) % 100 == 0:
if len(self.logs) % 1 == 0:
self.bulk_insert_logs()