Fix init log failed on macOS standalone mode (#26061)

Signed-off-by: luzhang <luzhang@zilliz.com>
Co-authored-by: luzhang <luzhang@zilliz.com>
This commit is contained in:
zhagnlu 2023-08-02 11:27:05 +08:00 committed by GitHub
parent 3fc18c53a3
commit 03d851f61f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,9 @@ KnowhereInitImpl(const char* conf_file) {
knowhere::KnowhereConfig::SetBlasThreshold(16384);
knowhere::KnowhereConfig::SetEarlyStopThreshold(0);
knowhere::KnowhereConfig::ShowVersion();
google::InitGoogleLogging("milvus");
if (!google::IsGoogleLoggingInitialized()) {
google::InitGoogleLogging("milvus");
}
#ifdef EMBEDDED_MILVUS
// always disable all logs for embedded milvus