diff --git a/lib/logflare/cluster/postgres_strategy.ex b/lib/logflare/cluster/postgres_strategy.ex index e81373847..e5cedde3f 100644 --- a/lib/logflare/cluster/postgres_strategy.ex +++ b/lib/logflare/cluster/postgres_strategy.ex @@ -115,7 +115,8 @@ defmodule Logflare.Cluster.PostgresStrategy do ~s|postgresql://#{username}:#{password}@#{hostname}:#{port}/#{database}| end -defp clean_cookie(cookie) when is_atom(cookie), do: cookie |> Atom.to_string() |> clean_cookie() + defp clean_cookie(cookie) when is_atom(cookie), do: cookie |> Atom.to_string() |> clean_cookie() + defp clean_cookie(str) when is_binary(str) do String.replace(str, ~r/\W/, "_") |> dbg() end