agl-service-data-persistence: change AFB_INFO calls to AFB_DEBUG 87/20987/1 7.99.1 halibut/7.99.1 halibut_7.99.1
authorMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 10 Apr 2019 19:15:21 +0000 (12:15 -0700)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 10 Apr 2019 19:25:18 +0000 (12:25 -0700)
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 <matt.ranostay@konsulko.com>
src/persistence-binding.c

index b6ec8d1..def5184 100644 (file)
@@ -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));
 }