From 602aaef0f0edf46780717f7ed1b3639227592d9d Mon Sep 17 00:00:00 2001 From: Hafeez Bana Date: Wed, 24 Jul 2024 18:17:27 +0000 Subject: [PATCH] FIX / Log to syslog even when group leader is another node --- lib/ex_syslogger.ex | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/ex_syslogger.ex b/lib/ex_syslogger.ex index 4c1a7da..e1b237e 100644 --- a/lib/ex_syslogger.ex +++ b/lib/ex_syslogger.ex @@ -197,15 +197,6 @@ defmodule ExSyslogger do {:ok, :ok, new_state} end - @doc """ - Handles a log event. Ignores the log event if the event level is less than the min log level. - - Ignores messages where the group leader is in a different node. - """ - def handle_event({_level, gl, _event}, config) when node(gl) != node() do - {:ok, config} - end - def handle_event( {level, _gl, {Logger, msg, timestamp, metadata}}, %{log: log, config: config} = state