From 38dd1dcf6134ea77edfb4e88a234251e403cbfd5 Mon Sep 17 00:00:00 2001 From: Jon Herron Date: Sat, 4 Feb 2023 12:55:48 -0500 Subject: [PATCH] Back to inserting every log --- .../src/spiffworkflow_backend/services/logging_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/logging_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/logging_service.py index 9981e1eb..aba695b8 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/logging_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/logging_service.py @@ -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()