فهرست منبع

fix: crash when mfa not found

Zhongwen Deng 3 سال پیش
والد
کامیت
3d07271ea5
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      apps/emqx/src/emqx_logger_textfmt.erl

+ 1 - 0
apps/emqx/src/emqx_logger_textfmt.erl

@@ -101,4 +101,5 @@ enrich_topic({Fmt, Args}, #{topic := Topic}) when is_list(Fmt) ->
 enrich_topic(Msg, _) ->
     Msg.
 
+mfa(undefined) -> undefined;
 mfa({M, F, A}) -> atom_to_list(M) ++ ":" ++ atom_to_list(F) ++ "/" ++ integer_to_list(A).