summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/storagedb.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/storagedb.erl b/src/storagedb.erl
index 9cdf4c1..35c13de 100644
--- a/src/storagedb.erl
+++ b/src/storagedb.erl
@@ -36,8 +36,11 @@ fetchnewhashes(Index) ->
-spec add(binary()) -> ok.
add(LeafHash) ->
+ lager:debug("add ~s to index", [mochihex:to_hex(LeafHash)]),
ok = call(?MODULE, {add_nosync, LeafHash}),
+ lager:debug("syncing leafhash ~s", [mochihex:to_hex(LeafHash)]),
ok = index:sync(newentries_path()),
+ lager:debug("synced leafhash ~s", [mochihex:to_hex(LeafHash)]),
ok.
%%%%%%%%%%%%%%%%%%%%