Skip to content

Commit 5f0fe4a

Browse files
Consider openning disk cache error as not fatal (#1377)
This error causes it to fall back to a memory cache so there's no need to break the application execution as it's recommended for the fatal errors. Relates-To: OLPSUP-21746 Signed-off-by: Rustam Gamidov <ext-rustam.gamidov@here.com>
1 parent 8a609d0 commit 5f0fe4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

olp-cpp-sdk-core/src/client/OlpClientSettingsFactory.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2019-2020 HERE Europe B.V.
2+
* Copyright (C) 2019-2023 HERE Europe B.V.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -52,7 +52,7 @@ OlpClientSettingsFactory::CreateDefaultCache(cache::CacheSettings settings) {
5252
auto cache = std::make_unique<cache::DefaultCache>(settings);
5353
auto error = cache->Open();
5454
if (error == cache::DefaultCache::StorageOpenResult::OpenDiskPathFailure) {
55-
OLP_SDK_LOG_FATAL_F(
55+
OLP_SDK_LOG_ERROR_F(
5656
kLogTag,
5757
"Error opening disk cache, disk_path_mutable=%s, "
5858
"disk_path_protected=%s",
@@ -63,7 +63,7 @@ OlpClientSettingsFactory::CreateDefaultCache(cache::CacheSettings settings) {
6363
return cache;
6464
#else
6565
OLP_SDK_CORE_UNUSED(settings);
66-
OLP_SDK_LOG_FATAL(kLogTag, "Default cache implementation is disabled.");
66+
OLP_SDK_LOG_ERROR(kLogTag, "Default cache implementation is disabled.");
6767
return nullptr;
6868
#endif // OLP_SDK_ENABLE_DEFAULT_CACHE
6969
}

0 commit comments

Comments
 (0)