Use LOG_SEGCORE_ERROR_ instead of std::cout (#11802)

Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
This commit is contained in:
Cai Yudong 2021-11-15 18:13:09 +08:00 committed by GitHub
parent 4ab46194c1
commit ecae18ad40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,9 +27,6 @@ NewSegment(CCollection collection, SegmentType seg_type) {
std::unique_ptr<milvus::segcore::SegmentInterface> segment;
switch (seg_type) {
case Invalid:
std::cout << "invalid segment type" << std::endl;
break;
case Growing:
segment = milvus::segcore::CreateGrowingSegment(col->get_schema());
break;
@ -38,10 +35,10 @@ NewSegment(CCollection collection, SegmentType seg_type) {
segment = milvus::segcore::CreateSealedSegment(col->get_schema());
break;
default:
std::cout << "invalid segment type" << std::endl;
LOG_SEGCORE_ERROR_ << "invalid segment type " << (int32_t)seg_type;
break;
}
// std::cout << "create segment " << segment_id << std::endl;
return (void*)segment.release();
}