Skip to content

Commit

Permalink
add some error log messages to envent consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
lukad committed May 19, 2024
1 parent 4b29f4d commit e866537
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/radiator/outline/event_consumer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ defmodule Radiator.Outline.EventConsumer do
{:ok, node}
end

defp handle_insert_node_result({:error, _error}, _event) do
# log_error_please :-)
defp handle_insert_node_result({:error, error}, _event) do
Logger.error("Insert node failed #{inspect(error)}")
:error
end

Expand All @@ -67,12 +67,12 @@ defmodule Radiator.Outline.EventConsumer do
end

def handle_change_node_content_result({:error, :not_found}, _command) do
# log_error_please :-)
Logger.error("Update node content failed. Node not found.")
:error
end

def handle_change_node_content_result({:error, _changeset}, _command) do
# log_error_please :-)
def handle_change_node_content_result({:error, changeset}, _command) do
Logger.error("Update node content failed. #{inspect(changeset)}")
:error
end
end

0 comments on commit e866537

Please sign in to comment.