]> Entropealabs - cluster_kv.git/commitdiff
more logging simplify-batch
authorChristopher <chris@entropealabs.com>
Thu, 16 Apr 2020 16:16:20 +0000 (11:16 -0500)
committerChristopher <chris@entropealabs.com>
Thu, 16 Apr 2020 16:16:20 +0000 (11:16 -0500)
lib/cluster_kv/db.ex

index 48c2741fabd4de8c0b332e01f604df04250aa62c..e803e4179ef49e1887f7ac08545c92437fae2f6a 100644 (file)
@@ -177,7 +177,8 @@ defmodule ClusterKV.DB do
         new = fun.(old, value)
         :ets.insert(db, new)
 
-      [_] ->
+      [{_, v}] ->
+        Logger.info("Exising value is not a list: #{inspect(v)} writing #{inspect(value)}")
         :ets.insert(db, {key, [value]})
     end