From 0e3e27eb2f7e17f16f67ea9ba22ac3db4f4f8243 Mon Sep 17 00:00:00 2001 From: Andrey Kashcheev Date: Wed, 2 Apr 2025 12:07:40 +0200 Subject: [PATCH] Lower the log level for some messages The messages are just information about the action and not the outcome Relates-To: DATASDK-70 Signed-off-by: Andrey Kashcheev --- .../src/repositories/CatalogCacheRepository.cpp | 4 ++-- .../src/repositories/PartitionsCacheRepository.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/olp-cpp-sdk-dataservice-read/src/repositories/CatalogCacheRepository.cpp b/olp-cpp-sdk-dataservice-read/src/repositories/CatalogCacheRepository.cpp index 17821565a..90e3cb304 100644 --- a/olp-cpp-sdk-dataservice-read/src/repositories/CatalogCacheRepository.cpp +++ b/olp-cpp-sdk-dataservice-read/src/repositories/CatalogCacheRepository.cpp @@ -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. @@ -108,7 +108,7 @@ boost::optional 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); } diff --git a/olp-cpp-sdk-dataservice-read/src/repositories/PartitionsCacheRepository.cpp b/olp-cpp-sdk-dataservice-read/src/repositories/PartitionsCacheRepository.cpp index 7d2c689ca..8904027fa 100644 --- a/olp-cpp-sdk-dataservice-read/src/repositories/PartitionsCacheRepository.cpp +++ b/olp-cpp-sdk-dataservice-read/src/repositories/PartitionsCacheRepository.cpp @@ -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. @@ -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& partition_ids, const boost::optional& 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; @@ -274,7 +274,7 @@ client::ApiNoResponse PartitionsCacheRepository::ClearPartitionMetadata( boost::optional& 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) {