Packages

Sentry client for Elixir based on the new Erlang's logger

Retired package: Release invalid - invalid version in mix.exs

Current section

Files

Jump to
sparrow lib sparrow coordinator.ex
Raw

lib/sparrow/coordinator.ex

defmodule Sparrow.Coordinator do
@moduledoc false
use GenServer
def start_link(args) do
GenServer.start(__MODULE__, args, name: __MODULE__)
end
def init(_args) do
{:ok, []}
end
def handle_info({Sparrow.Catcher, log, config}, state) do
Task.Supervisor.start_child(Sparrow.TaskSupervisor, fn ->
Sparrow.Catcher.async_log(log, config)
end)
{:noreply, state}
end
def handle_info(_msg, state) do
{:noreply, state}
end
end