diff --git a/apps/emqx/src/config/emqx_config_logger.erl b/apps/emqx/src/config/emqx_config_logger.erl index 449d5207d..87baef627 100644 --- a/apps/emqx/src/config/emqx_config_logger.erl +++ b/apps/emqx/src/config/emqx_config_logger.erl @@ -118,6 +118,8 @@ update_log_handler({Action, {handler, Id, Mod, Conf}}) -> end, ok. +-ifdef(EMQX_RELEASE_EDITION). + -if(?EMQX_RELEASE_EDITION == ee). audit(Event, ?AUDIT_HANDLER) -> emqx_audit:log(alert, #{event => Event, from => event}); @@ -128,6 +130,11 @@ audit(_, _) -> ok. -endif. +-else. +audit(_, _) -> + ok. +-endif. + id_for_log(console) -> "log.console"; id_for_log(Other) -> "log.file." ++ atom_to_list(Other).