include query in logs