diff --git a/cpp/src/db/scheduler/TaskDispatchStrategy.cpp b/cpp/src/db/scheduler/TaskDispatchStrategy.cpp index 985f86cb0912684e5b8aab217995502ce7629e9b..73c46942c88daa867ba53ea06ebc15fa4ae5c876 100644 --- a/cpp/src/db/scheduler/TaskDispatchStrategy.cpp +++ b/cpp/src/db/scheduler/TaskDispatchStrategy.cpp @@ -32,7 +32,7 @@ public: IndexLoadTaskPtr loader = std::static_pointer_cast(task); if(index_files.find(loader->file_->id_) != index_files.end()){ - ENGINE_LOG_INFO << "Append SearchContext to exist IndexLoaderContext"; + ENGINE_LOG_DEBUG << "Append SearchContext to exist IndexLoaderContext"; index_files.erase(loader->file_->id_); loader->search_contexts_.push_back(context); } @@ -40,7 +40,7 @@ public: //index_files still contains some index files, create new loader for(auto& pair : index_files) { - ENGINE_LOG_INFO << "Create new IndexLoaderContext for: " << pair.second->location_; + ENGINE_LOG_DEBUG << "Create new IndexLoaderContext for: " << pair.second->location_; IndexLoadTaskPtr new_loader = std::make_shared(); new_loader->search_contexts_.push_back(context); new_loader->file_ = pair.second; diff --git a/cpp/src/db/scheduler/context/SearchContext.cpp b/cpp/src/db/scheduler/context/SearchContext.cpp index 493005f05a0351279540b8ba0e11342b8545ab7f..599686b5f4a1f2b3f1c2dba97290f4dd806a584c 100644 --- a/cpp/src/db/scheduler/context/SearchContext.cpp +++ b/cpp/src/db/scheduler/context/SearchContext.cpp @@ -31,7 +31,7 @@ SearchContext::AddIndexFile(TableFileSchemaPtr& index_file) { return false; } - SERVER_LOG_INFO << "SearchContext " << identity_ << " add index file: " << index_file->id_; + SERVER_LOG_DEBUG << "SearchContext " << identity_ << " add index file: " << index_file->id_; map_index_files_[index_file->id_] = index_file; return true; @@ -42,7 +42,7 @@ SearchContext::IndexSearchDone(size_t index_id) { std::unique_lock lock(mtx_); map_index_files_.erase(index_id); done_cond_.notify_all(); - SERVER_LOG_INFO << "SearchContext " << identity_ << " finish index file: " << index_id; + SERVER_LOG_DEBUG << "SearchContext " << identity_ << " finish index file: " << index_id; } void diff --git a/cpp/src/db/scheduler/task/IndexLoadTask.cpp b/cpp/src/db/scheduler/task/IndexLoadTask.cpp index 91f0e26577b4f468345c63aca06fc770e8bd4731..ef7d61ca3379b0ba94ff48d1420f2a0b8939c074 100644 --- a/cpp/src/db/scheduler/task/IndexLoadTask.cpp +++ b/cpp/src/db/scheduler/task/IndexLoadTask.cpp @@ -41,7 +41,7 @@ IndexLoadTask::IndexLoadTask() } std::shared_ptr IndexLoadTask::Execute() { - ENGINE_LOG_INFO << "Loading index(" << file_->id_ << ") from location: " << file_->location_; + ENGINE_LOG_DEBUG << "Loading index(" << file_->id_ << ") from location: " << file_->location_; server::TimeRecorder rc("Load index"); //step 1: load index @@ -53,7 +53,7 @@ std::shared_ptr IndexLoadTask::Execute() { rc.Record("load index file to memory"); size_t file_size = index_ptr->PhysicalSize(); - LOG(DEBUG) << "Index file type " << file_->file_type_ << " Of Size: " + ENGINE_LOG_DEBUG << "Index file type " << file_->file_type_ << " Of Size: " << file_size/(1024*1024) << " M"; CollectFileMetrics(file_->file_type_, file_size); diff --git a/cpp/src/db/scheduler/task/SearchTask.cpp b/cpp/src/db/scheduler/task/SearchTask.cpp index 5606ba2c84221712e648268d53325f96bf3b58ff..d44e43163abf12c2d8ef8856a8ac6338e82a1c8a 100644 --- a/cpp/src/db/scheduler/task/SearchTask.cpp +++ b/cpp/src/db/scheduler/task/SearchTask.cpp @@ -51,7 +51,7 @@ std::shared_ptr SearchTask::Execute() { return nullptr; } - SERVER_LOG_INFO << "Searching in index(" << index_id_<< ") with " + SERVER_LOG_DEBUG << "Searching in index(" << index_id_<< ") with " << search_contexts_.size() << " tasks"; server::TimeRecorder rc("DoSearch index(" + std::to_string(index_id_) + ")");