Browse Source

ft: 代码修改

SisMaker 4 years ago
parent
commit
db74a81de1
2 changed files with 5 additions and 5 deletions
  1. +1
    -1
      src/backend/rumBkdConsole.erl
  2. +4
    -4
      src/eRum.erl

+ 1
- 1
src/backend/rumBkdConsole.erl View File

@ -88,7 +88,7 @@ handleCall({mSetLogLevel, Level}, State) ->
{reply, ok, State#state{level = Levels}}
catch
_:_ ->
{reply, {error, bad_log_level}, State}clo
{reply, {error, bad_log_level}, State}
end;
handleCall(_Msg, State) ->
?ERR("~p call receive unexpect msg ~p ~n ", [?MODULE, _Msg]),

+ 4
- 4
src/eRum.erl View File

@ -423,10 +423,10 @@ status() ->
"Active Traces:\n",
[begin
LevelName =
case rumUtil:maskToLevels(Mask) of
[] -> none;
Levels -> hd(Levels)
end,
case rumUtil:maskToLevels(Level) of
[] -> none;
Levels -> hd(Levels)
end,
io_lib:format("Tracing messages matching ~p (sink ~s) at level ~p to ~p\n",
[Filter, Sink, LevelName, Destination])

Loading…
Cancel
Save