From ed62e966bd47ee8cf84487a718799fe2bcef188c Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Mon, 2 Feb 2015 16:46:21 +0100 Subject: Added debug logging --- src/storagedb.erl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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. %%%%%%%%%%%%%%%%%%%% -- cgit v1.1