Skip to content

Commit 8344634

Browse files
authored
Fix return value in logger filter docs (#14659)
Signed-off-by: dssecret <[email protected]>
1 parent d4b0b0e commit 8344634

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/logger/lib/logger.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,9 @@ defmodule Logger do
449449
end
450450
end
451451
452-
It may return `:log` (to log the message), `:stop` (to not log the
453-
message), or `:ignore` (to ignore the filter).
452+
The filter may return the possibly modified event (to change the
453+
event used by subsequent filters), `:stop` (to discard the event),
454+
or `:ignore` (to ignore the filter and continue with the subsequent filters).
454455
455456
Then you can attach the filter, either as a primary filter (which
456457
applies to all handlers), or to a specific handler, when you start

0 commit comments

Comments
 (0)