add query time spend to log