diff options
| author | Magnus Ahltorp <map@kth.se> | 2015-02-02 16:46:21 +0100 |
|---|---|---|
| committer | Magnus Ahltorp <map@kth.se> | 2015-02-02 16:46:21 +0100 |
| commit | ed62e966bd47ee8cf84487a718799fe2bcef188c (patch) | |
| tree | 285d9634737336f36d015c9fc7aa4dabce11ebe3 | |
| parent | dd70b3dade88fa6cef463d4c7f63cbac982a3abf (diff) | |
Added debug logging
| -rw-r--r-- | src/storagedb.erl | 3 |
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. %%%%%%%%%%%%%%%%%%%% |
