fix(ldap): fix that logs of eldap will never be logged

This commit is contained in:
firest 2024-02-27 15:47:46 +08:00
parent bb6a95bae8
commit 6e73cfa2cf
1 changed files with 4 additions and 3 deletions

View File

@ -312,11 +312,12 @@ do_ldap_query(
{error, {unrecoverable_error, Reason}} {error, {unrecoverable_error, Reason}}
end. end.
log(Level, Format, Args) -> %% Note: the value of the `_Level` here always is 2
log(_Level, Format, Args) ->
?SLOG( ?SLOG(
Level, info,
#{ #{
msg => "ldap_log", msg => "eldap_info",
log => io_lib:format(Format, Args) log => io_lib:format(Format, Args)
} }
). ).