added log emit for query times