summaryrefslogtreecommitdiff
path: root/src/db.erl
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2014-10-24 15:32:58 +0200
committerMagnus Ahltorp <map@kth.se>2014-10-24 15:36:36 +0200
commitb968cb1330ecb13f26e35d948c0511882b89ab2a (patch)
treeeecbb90a07b7b932d0c957ee04d8b0c57e15fb19 /src/db.erl
parent729c7410504252d7c33e8fd2f43e662725186960 (diff)
Added lager for logging
Diffstat (limited to 'src/db.erl')
-rw-r--r--src/db.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/db.erl b/src/db.erl
index 413f4b9..fade7ce 100644
--- a/src/db.erl
+++ b/src/db.erl
@@ -160,7 +160,9 @@ handle_call({add, {LeafHash, EntryHash, Data, Index}}, _From, State) ->
{reply, ok, State};
handle_call({add, {LeafHash, Data}}, _From, State) ->
+ lager:debug("add leafhash ~p", [LeafHash]),
ok = perm:ensurefile(entry_root_path(), LeafHash, Data),
+ lager:debug("leafhash ~p added", [LeafHash]),
{reply, ok, State};
handle_call({add_entryhash, {LeafHash, EntryHash}}, _From, State) ->