Skip to content

Lower the log level for some messages #1599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2024 HERE Europe B.V.
* Copyright (C) 2019-2025 HERE Europe B.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -108,7 +108,7 @@ boost::optional<model::VersionResponse> CatalogCacheRepository::GetVersion() {
bool CatalogCacheRepository::Clear() {
const std::string hrn(hrn_.ToCatalogHRNString());
const auto key = cache::KeyGenerator::CreateCatalogKey(hrn);
OLP_SDK_LOG_INFO_F(kLogTag, "Clear -> '%s'", key.c_str());
OLP_SDK_LOG_TRACE_F(kLogTag, "Clear -> '%s'", key.c_str());

return cache_->RemoveKeysWithPrefix(hrn);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2024 HERE Europe B.V.
* Copyright (C) 2019-2025 HERE Europe B.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -234,14 +234,14 @@ bool PartitionsCacheRepository::Get(geo::TileKey tile_key, int32_t depth,

bool PartitionsCacheRepository::Clear() {
auto key = catalog_ + "::" + layer_id_ + "::";
OLP_SDK_LOG_INFO_F(kLogTag, "Clear -> '%s'", key.c_str());
OLP_SDK_LOG_TRACE_F(kLogTag, "Clear -> '%s'", key.c_str());
return cache_->RemoveKeysWithPrefix(key);
}

bool PartitionsCacheRepository::ClearPartitions(
const std::vector<std::string>& partition_ids,
const boost::optional<int64_t>& version) {
OLP_SDK_LOG_INFO_F(kLogTag, "ClearPartitions -> '%s'", catalog_.c_str());
OLP_SDK_LOG_TRACE_F(kLogTag, "ClearPartitions -> '%s'", catalog_.c_str());
auto cached_partitions = Get(partition_ids, version);
bool passed = true;

Expand Down Expand Up @@ -274,7 +274,7 @@ client::ApiNoResponse PartitionsCacheRepository::ClearPartitionMetadata(
boost::optional<model::Partition>& out_partition) {
const auto key = cache::KeyGenerator::CreatePartitionKey(
catalog_, layer_id_, partition_id, catalog_version);
OLP_SDK_LOG_INFO_F(kLogTag, "ClearPartitionMetadata -> '%s'", key.c_str());
OLP_SDK_LOG_TRACE_F(kLogTag, "ClearPartitionMetadata -> '%s'", key.c_str());

auto read_response = cache_->Read(key);
if (!read_response) {
Expand Down
Loading