Skip to content

Commit

Permalink
Fix restore configures logging.
Browse files Browse the repository at this point in the history
Signed-off-by: Edmondfrank <[email protected]>
  • Loading branch information
EdmondFrank committed Oct 21, 2024
1 parent 9073fb5 commit cbd8d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compass_admin_web/live/configuration_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ defmodule CompassAdminWeb.ConfigurationLive do

defp recent_logs(config) do
with cached <- Riak.find(RiakPool.conn, @bucket, "compass:admin:#{config}:logs") do
if cached != nil, do: :erlang.binary_to_term(cached), else: []
if cached != nil, do: :erlang.binary_to_term(cached.data), else: []
end || []
end

Expand Down

0 comments on commit cbd8d3a

Please sign in to comment.