Skip to content

Conversation

BahadorBiglar
Copy link

Erlang library, eldap, can accept a logging function with three parameters: Level, FormatString, Args.
(https://www.erlang.org/doc/man/eldap.html#open-1) The first parameter, Level, is always set to 2.

Here we have added (uncommented) a simple function to log with Level 1 in order to distinguish between error logs and debug logs. At the same time logging errors will call this new function, so we can throttle the ones we have no interest in.

Erlang library, eldap, can accept a logging function
with three parameters: Level, FormatString, Args.
(https://www.erlang.org/doc/man/eldap.html#open-1)
The first parameter, Level, is always set to 2.

Here we have added (uncommented) a simple function to log with
Level 1 in order to distinguish between error logs and debug logs.
At the same time logging errors will call this new function, so we
can throttle the ones we have no interest in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant