aboutsummaryrefslogtreecommitdiff
path: root/pw_kvs/entry_cache.cc
diff options
context:
space:
mode:
authorWyatt Hepler <hepler@google.com>2020-10-14 10:46:27 -0700
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2020-10-16 19:45:13 +0000
commitae222dc4921064e2c9a044c69f2c36541c811e57 (patch)
treec10fc231c8c6b32abd2296fa2fb16940a67fbf2e /pw_kvs/entry_cache.cc
parentb4f9598bae4e1751544d3264bcb590d9d44629c5 (diff)
downloadpigweed-ae222dc4921064e2c9a044c69f2c36541c811e57.tar.gz
pw_kvs: Apply config pattern; configure log level
- Add PW_KVS_LOG_LEVEL to the pw_kvs config file and update code to use it. - Define a pw_kvs:config facade that be used to override configuration values. - Set up the empty "$dir_pw_build:empty" target that all modules use as their default configuration backend via the pw_build_DEFAULT_MODULE_CONFIGURATION variable. Change-Id: Idf54d93678ffbd65e9e02a10454df4479f73827a Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/21240 Reviewed-by: David Rogers <davidrogers@google.com> Reviewed-by: Armando Montanez <amontanez@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
Diffstat (limited to 'pw_kvs/entry_cache.cc')
-rw-r--r--pw_kvs/entry_cache.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/pw_kvs/entry_cache.cc b/pw_kvs/entry_cache.cc
index b6245a4d5..9fa93a263 100644
--- a/pw_kvs/entry_cache.cc
+++ b/pw_kvs/entry_cache.cc
@@ -13,6 +13,7 @@
// the License.
#define PW_LOG_MODULE_NAME "KVS"
+#define PW_LOG_LEVEL PW_KVS_LOG_LEVEL
#include "pw_kvs/internal/entry_cache.h"
@@ -21,6 +22,7 @@
#include "pw_kvs/flash_memory.h"
#include "pw_kvs/internal/entry.h"
#include "pw_kvs/internal/hash.h"
+#include "pw_kvs_private/config.h"
#include "pw_log/log.h"
namespace pw::kvs::internal {