 defmodule Exkad.Store do
   use GenServer
+  require Logger
 
   def start_link(name) do
     GenServer.start_link(__MODULE__, [name])

  end

  def handle_call({:get, key}, _, state) do
    result = do_get(key, state)
    {:reply, result, state}
  end

  end

  def handle_call({:put, key, value}, _, state) do
    Logger.debug("Putting #{key} on #{state.name}")
    {:ok, existing} = do_get(key, state)
    serialized = :erlang.term_to_binary([value | existing])
    :eleveldb.put(state.db, key, serialized, [])
