Skip to content

Commit bc0f77e

Browse files
formatting, remove unneded logs
Signed-off-by: Allen Samuels <[email protected]>
1 parent b97db21 commit bc0f77e

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

integration/indexes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,4 @@ def query(self, client:valkey.client, query_string: str, *args) -> dict[bytes, d
217217
print("Key", key, "Fields:", fields, " Values:", values)
218218
dict_result[key] = {fields[i]:values[i] for i in range(len(fields))}
219219
print("Final result", dict_result)
220-
return dict_result
220+
return dict_result

integration/test_dbnum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pytest, time, logging
88
from indexes import *
99

10-
class TestFanoutBase(ValkeySearchClusterTestCaseDebugMode):
10+
class TestDBNum(ValkeySearchClusterTestCaseDebugMode):
1111
def setup_connections(self):
1212
self.client00 = self.get_primary(0).connect();
1313
self.client00.select(0)

src/coordinator/metadata_manager.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ void MetadataManager::HandleBroadcastedMetadata(
354354
schema = std::unique_ptr<GlobalMetadata>(
355355
response.release_metadata()),
356356
address = std::move(address)] {
357-
VMSDK_LOG_EVERY_N(WARNING, ctx, 1)
357+
VMSDK_LOG_EVERY_N_SEC(DEBUG, ctx, 1)
358358
<< "Got GlobalMetadata from " << address << ": "
359359
<< schema->DebugString();
360360
auto &metadata_manager = MetadataManager::Instance();
@@ -364,7 +364,7 @@ void MetadataManager::HandleBroadcastedMetadata(
364364
<< "Failed to reconcile schemas: " << status.message();
365365
return;
366366
}
367-
VMSDK_LOG_EVERY_N(WARNING, ctx, 1)
367+
VMSDK_LOG_EVERY_N_SEC(DEBUG, ctx, 1)
368368
<< "Successfully reconciled schemas! New GlobalMetadata: "
369369
<< metadata_manager.GetGlobalMetadata()->DebugString();
370370
});

src/coordinator/server.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,12 @@ grpc::ServerUnaryReactor* Service::SearchIndexPartition(
188188
std::pair<grpc::Status, coordinator::InfoIndexPartitionResponse>
189189
Service::GenerateInfoResponse(
190190
const coordinator::InfoIndexPartitionRequest& request) {
191-
VMSDK_LOG(WARNING, nullptr)
192-
<< "DELETE: INFO REQUEST " << request.ShortDebugString();
193191
uint32_t db_num = request.db_num();
194192
std::string index_name = request.index_name();
195193
coordinator::InfoIndexPartitionResponse response;
196194
auto status_or_schema =
197195
SchemaManager::Instance().GetIndexSchema(db_num, index_name);
198196
if (!status_or_schema.ok()) {
199-
VMSDK_LOG(WARNING, nullptr)
200-
<< "DELETE: NOT_FOUND: " << status_or_schema.status().ToString();
201197
response.set_exists(false);
202198
response.set_index_name(index_name);
203199
response.set_error(status_or_schema.status().ToString());
@@ -244,8 +240,6 @@ Service::GenerateInfoResponse(
244240
*response.mutable_index_fingerprint_version() =
245241
std::move(index_fingerprint_version.value());
246242
}
247-
VMSDK_LOG(WARNING, nullptr)
248-
<< "DELETE: Found index: " << response.ShortDebugString();
249243
return std::make_pair(grpc::Status::OK, response);
250244
}
251245

src/schema_manager.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ absl::Status GenerateIndexAlreadyExistsError(absl::string_view name) {
148148

149149
absl::StatusOr<std::shared_ptr<IndexSchema>> SchemaManager::LookupInternal(
150150
uint32_t db_num, absl::string_view name) const {
151-
VMSDK_LOG(WARNING, nullptr) << "LOOKUP: " << db_num << " : " << name;
152151
auto db_itr = db_to_index_schemas_.find(db_num);
153152
if (db_itr == db_to_index_schemas_.end()) {
154153
return absl::NotFoundError(absl::StrCat("Index schema not found: ", name));

0 commit comments

Comments
 (0)