瀏覽代碼

fx: bug fix

master
SisMaker 3 年之前
父節點
當前提交
e6cd3606c8
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. +2
    -2
      src/crashLog/lgCrashLog.erl
  2. +2
    -2
      src/errLogger/lgErrLoggerH.erl

+ 2
- 2
src/crashLog/lgCrashLog.erl 查看文件

@ -110,8 +110,8 @@ closeFile(#state{fBName = FBName, fd = Fd} = State) ->
end.
otherNodeSuffix(Pid) ->
PidNode = node(Pid),
case PidNode =/= node() of
PidNode = ?IIF(is_pid(Pid), node(Pid), undefined),
case PidNode =/= undefined andalso PidNode =/= node() of
true ->
<<"** at node ", (atom_to_binary(node(Pid), utf8))/binary, " **\n">>;
_ ->

+ 2
- 2
src/errLogger/lgErrLoggerH.erl 查看文件

@ -490,11 +490,11 @@ formatReasonMd({badarg, [MFA, MFA2 | _]}) ->
%% R15 line numbers
{Md, Formatted} = formatMfaMd(MFA2),
{_, Formatted2} = formatMfaMd(MFA),
{[{reason, badarg} | Md], <<"bad argument in call to ", Formatted2, " in ", Formatted/binary>>};
{[{reason, badarg} | Md], <<"bad argument in call to ", Formatted2/binary, " in ", Formatted/binary>>};
{_M, _F, A} when is_list(A) ->
{Md, Formatted} = formatMfaMd(MFA2),
{_, Formatted2} = formatMfaMd(MFA),
{[{reason, badarg} | Md], <<"bad argument in call to ", Formatted2, " in ", Formatted/binary>>};
{[{reason, badarg} | Md], <<"bad argument in call to ", Formatted2/binary, " in ", Formatted/binary>>};
_ ->
%% seems to be generated by a bad call to a BIF
{Md, Formatted} = formatMfaMd(MFA),

Loading…
取消
儲存