Change assertion to glog function.