fixing logging of warnings on query completed