fix: crash when mfa not found

This commit is contained in:
Zhongwen Deng 2023-01-30 14:30:20 +08:00
parent 25090563af
commit 3d07271ea5
1 changed files with 1 additions and 0 deletions

View File

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