From 88f7569ec3ba8a343adc732458ef9ac770615e72 Mon Sep 17 00:00:00 2001 From: "taotao.lin" Date: Mon, 27 Nov 2017 15:54:15 +0800 Subject: [PATCH] fix warning for GenEvent --- lib/sentry/logger.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sentry/logger.ex b/lib/sentry/logger.ex index 6eea9515..2ff55e4b 100644 --- a/lib/sentry/logger.ex +++ b/lib/sentry/logger.ex @@ -36,9 +36,9 @@ defmodule Sentry.Logger do With this solution, if a `Sentry.Logger` handler is already running, it will not add another. One can add the code to each application, and there will only ever be one handler created. This solution is safer, but slightly more complex to manage. """ - use GenEvent + @behaviour :gen_event - def init(_mod, []), do: {:ok, []} + def init(_mod), do: {:ok, []} def handle_call({:configure, new_keys}, _state), do: {:ok, :ok, new_keys}