From 50dfacece00f01987e87eff9094d7d51ef098419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 29 Oct 2019 11:43:09 -0400 Subject: [PATCH] Added values to debug logging of DB requests. --- libs/sqlite3worker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/sqlite3worker.py b/libs/sqlite3worker.py index ab7c1b8ce..fc589cc0b 100644 --- a/libs/sqlite3worker.py +++ b/libs/sqlite3worker.py @@ -93,7 +93,7 @@ class Sqlite3Worker(threading.Thread): for token, query, values, only_one in iter(self.sql_queue.get, None): LOGGER.debug("sql_queue: %s", self.sql_queue.qsize()) if token != self.exit_token: - LOGGER.debug("run: %s", query) + LOGGER.debug("run: %s, %s", query, values) self.run_query(token, query, values, only_one) execute_count += 1 # Let the executes build up a little before committing to disk @@ -188,9 +188,9 @@ class Sqlite3Worker(threading.Thread): If it's a select query it will return the results of the query. """ if self.exit_set: - LOGGER.debug("Exit set, not running: %s", query) + LOGGER.debug("Exit set, not running: %s, %s", query, values) return "Exit Called" - LOGGER.debug("execute: %s", query) + LOGGER.debug("execute: %s, %s", query, values) values = values or [] # A token to track this query with. token = str(uuid.uuid4())