# db_logging.py def log_change(cursor, message: str): """Insert a log entry into the log table.""" cursor.execute( "INSERT INTO log (entry) VALUES (%s)", (message,) )