             {:noreply, {xid, experiment, Map.drop(result, ["host", "participant"])}}
         end
       {:error, e} ->
-        Logger.error("#{inspect e}")
+        Logger.error(Exception.format(:error, e, System.stacktrace()))
         if experiment.module.script_type == :data do
           case sender do
             nil -> nil


  def call_script(experiment, func, args) do
    try do
      apply(experiment.module, func, args)
    rescue
      e -> {:error, e}
    end

          end
        end
        {:noreply, state}
    end
  end

