From c7f47c00028f824863e54e904dfa950a09a7e6ea Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Wed, 10 Apr 2019 12:15:21 -0700 Subject: agl-service-data-persistence: change AFB_INFO calls to AFB_DEBUG AFB_INFO calls for key creation/update/delete for key value pairs is cluttering up the journal, and also a security risk for possibly leaking data. Change-Id: Ifcaf3de5551c66ba4e5813dcaf447d9ca1ef25a1 Signed-off-by: Matt Ranostay --- src/persistence-binding.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/persistence-binding.c b/src/persistence-binding.c index b6ec8d1..def5184 100644 --- a/src/persistence-binding.c +++ b/src/persistence-binding.c @@ -130,7 +130,7 @@ static void verb_read(struct afb_req req) if (get_key(req, &key)) return; - AFB_INFO("read: key=%s", DATA_STR(key)); + AFB_DEBUG("read: key=%s", DATA_STR(key)); memset(&data, 0, sizeof data); data.data = value; @@ -398,7 +398,7 @@ static void put(struct afb_req req, int replace) if (get_key(req, &key)) return; - AFB_INFO("put: key=%s, value=%s", DATA_STR(key), DATA_STR(data)); + AFB_DEBUG("put: key=%s, value=%s", DATA_STR(key), DATA_STR(data)); xdb_put(req, &key, &data, replace); free(DATA_PTR(key)); } @@ -420,7 +420,7 @@ static void verb_delete(struct afb_req req) if (get_key(req, &key)) return; - AFB_INFO("delete: key=%s", DATA_STR(key)); + AFB_DEBUG("delete: key=%s", DATA_STR(key)); xdb_delete(req, &key); free(DATA_PTR(key)); } @@ -432,7 +432,7 @@ static void verb_read(struct afb_req req) if (get_key(req, &key)) return; - AFB_INFO("read: key=%s", DATA_STR(key)); + AFB_DEBUG("read: key=%s", DATA_STR(key)); xdb_get(req, &key); free(DATA_PTR(key)); } -- cgit 1.2.3-korg