add log in tianqi function