Skip to content

Commit

Permalink
Merge pull request #72 from bbalser/logs_and_0.12.1
Browse files Browse the repository at this point in the history
Added just debug logging and bumped version to 0.12.1
  • Loading branch information
jdenen authored Mar 5, 2020
2 parents 0b01f44 + 17f154c commit 6bd9412
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/elsa/group/manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ defmodule Elsa.Group.Manager do
end

def handle_call({:process_assignments, _member_id, generation_id, assignments}, _from, state) do
Logger.debug(fn -> "#{__MODULE__}: process assignments #{inspect(assignments)}" end)

case call_lifecycle_assignment_received(state, assignments, generation_id) do
{:error, reason} ->
{:stop, reason, {:error, reason}, state}
Expand All @@ -192,7 +194,8 @@ defmodule Elsa.Group.Manager do
{:reply, :ok, %{state | workers: new_workers, generation_id: nil}}
end

def handle_info({:DOWN, ref, :process, _object, _reason}, state) do
def handle_info({:DOWN, ref, :process, object, reason}, state) do
Logger.debug(fn -> "#{__MODULE__}: worker death: #{inspect(object)} - #{inspect(reason)}" end)
new_workers = WorkerManager.restart_worker(state.workers, ref, state)

{:noreply, %{state | workers: new_workers}}
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Elsa.MixProject do
def project do
[
app: :elsa,
version: "0.12.0",
version: "0.12.1",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
description: description(),
Expand Down

0 comments on commit 6bd9412

Please sign in to comment.