Capture no_cache sentry messages together (#2772)

This commit is contained in:
Adam 2023-03-20 14:03:05 +01:00 committed by GitHub
parent c245e3f824
commit 736e6e385c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -169,9 +169,7 @@ defmodule Plausible.Site.Cache do
site
{:error, e} ->
Logger.error(
"Error retrieving '#{domain}' from '#{inspect(cache_name)}': #{inspect(e)}"
)
Logger.error("Error retrieving domain from '#{inspect(cache_name)}': #{inspect(e)}")
nil
end

View File

@ -23,7 +23,7 @@ defmodule Plausible.Site.CacheTest do
assert Cache.get("key", force?: true, cache_name: NonExistingCache) == nil
end)
assert log =~ "Error retrieving 'key' from 'NonExistingCache': :no_cache"
assert log =~ "Error retrieving domain from 'NonExistingCache': :no_cache"
end
test "cache caches", %{test: test} do