Merge pull request #12601 from lafirest/fix/eldap_log

fix(ldap): fix that logs of eldap will never be logged
This commit is contained in:
lafirest 2024-02-27 21:50:05 +08:00 committed by GitHub
commit 02de92a53d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View File

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

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)
} }
). ).

View File

@ -0,0 +1 @@
Fixed that the logs of LDAP driver would never be logged, now all of them are logged with `info` level.