diff --git a/config/config.exs b/config/config.exs index 93a4ffb..ef4fdcf 100644 --- a/config/config.exs +++ b/config/config.exs @@ -14,13 +14,13 @@ config :vonbraun, Vonbraun.Cache, # GC max timeout: 10 min gc_cleanup_max_timeout: :timer.minutes(10) -#config :vonbraun, +# config :vonbraun, # json_ld: %{ # "https://www.w3.org/ns/activitystreams" => # File.read!(Path.join(Path.dirname(__DIR__), "priv/jsonld/activitystreams.json")) # } - config :vonbraun, +config :vonbraun, json_ld: %{} import_config "#{Mix.env()}.exs" diff --git a/lib/vonbraun/control.ex b/lib/vonbraun/control.ex index 457a32f..c88ae14 100644 --- a/lib/vonbraun/control.ex +++ b/lib/vonbraun/control.ex @@ -135,7 +135,7 @@ defmodule Vonbraun.Control do document_loader: Vonbraun.JSONLD.DocumentLoaderAgent ) - Logger.debug(("Here is the expanded activity:\n#{Jason.encode!(expanded_activity)}")) + Logger.debug("Here is the expanded activity:\n#{Jason.encode!(expanded_activity)}") activity end diff --git a/lib/vonbraun/json_ld/document_loader_agent.ex b/lib/vonbraun/json_ld/document_loader_agent.ex index 8652b25..e65e0f7 100644 --- a/lib/vonbraun/json_ld/document_loader_agent.ex +++ b/lib/vonbraun/json_ld/document_loader_agent.ex @@ -76,13 +76,13 @@ defmodule Vonbraun.JSONLD.DocumentLoaderAgent do Logger.debug("Attempting to load JSON-LD context: #{url}") with {:cache, nil} <- {:cache, Agent.get(__MODULE__, fn state -> Map.get(state, url) end)}, - :ok <- Logger.debug("No cached JSON-LD context, so querying"), + :ok <- Logger.debug("No cached JSON-LD context, so querying"), {:get, {:ok, body}} <- {:get, http_get(url)}, {:data, data} <- {:data, %RemoteDocument{document: body, document_url: url}}, {:update, :ok} <- {:update, Agent.update(__MODULE__, fn state -> Map.put(state, url, {:ok, data}) end)} do - Logger.debug("Got remote one, so returning it.") + Logger.debug("Got remote one, so returning it.") {:ok, data} else {:cache, response} ->