mirror of
https://github.com/plausible/analytics.git
synced 2024-11-26 11:44:03 +03:00
Capture no_cache sentry messages together (#2772)
This commit is contained in:
parent
c245e3f824
commit
736e6e385c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user