Merge pull request #12597 from lafirest/fix/ldap_log

fix(ldap): fix that logs of eldap will never be logged
This commit is contained in:
lafirest 2024-02-27 17:40:44 +08:00 committed by GitHub
commit 9ae7ac04a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{application, emqx_ldap, [
{description, "EMQX LDAP Connector"},
{vsn, "0.1.6"},
{vsn, "0.1.7"},
{registered, []},
{applications, [
kernel,

View File

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