checl if log query prints properly