Skip to content

Commit

Permalink
FIX / Log to syslog even when group leader is another node
Browse files Browse the repository at this point in the history
  • Loading branch information
Hafeez Bana committed Jul 24, 2024
1 parent 10c2549 commit 602aaef
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/ex_syslogger.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 602aaef

Please sign in to comment.