rework icons, codechanges, bugfixes, typofixes
This commit is contained in:
@@ -188,7 +188,16 @@ class Database:
|
||||
"""
|
||||
conn = self.connect()
|
||||
cursor = conn.cursor()
|
||||
log_message = f"{self.get_caller_line()} Querying database with query {query}, args: {args}"
|
||||
logs_query = query
|
||||
logs_args = args
|
||||
if "fileblob" in query:
|
||||
#set fileblob arg in logger to "too long"
|
||||
logs_query = query
|
||||
fileblob_location = query.find("fileblob")
|
||||
#remove fileblob from query
|
||||
logs_query = query[:fileblob_location] + "fileblob = too long"
|
||||
|
||||
log_message = f"{self.get_caller_line()} Querying database with query {logs_query}, args: {logs_args}"
|
||||
# if "INSERT" in query:
|
||||
# log_message = f"Querying database with query {query}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user