Skip to content

Commit

Permalink
Merge pull request #26 from macrocreation/main
Browse files Browse the repository at this point in the history
FIX / Log to syslog even when group leader is another node
  • Loading branch information
slashmili authored Jul 25, 2024
2 parents 10c2549 + 602aaef commit c409bd8
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 c409bd8

Please sign in to comment.