diff options
author | Raimo Niskanen <[email protected]> | 2018-10-31 16:40:14 +0100 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2018-11-30 10:43:08 +0100 |
commit | 8893e9f9d0a25c0b3c8cc78765df5cdc0de0bdf8 (patch) | |
tree | 30fc878e291069fe8171c367d2f36020754f5596 /lib/stdlib/src/gen_server.erl | |
parent | 65983ac6b21886010b9cab47ab905fd783a79f67 (diff) | |
download | otp-8893e9f9d0a25c0b3c8cc78765df5cdc0de0bdf8.tar.gz otp-8893e9f9d0a25c0b3c8cc78765df5cdc0de0bdf8.tar.bz2 otp-8893e9f9d0a25c0b3c8cc78765df5cdc0de0bdf8.zip |
Adjust sys:log(N, get) to documentation
Diffstat (limited to 'lib/stdlib/src/gen_server.erl')
-rw-r--r-- | lib/stdlib/src/gen_server.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/gen_server.erl b/lib/stdlib/src/gen_server.erl index f57c136296..7a415c7620 100644 --- a/lib/stdlib/src/gen_server.erl +++ b/lib/stdlib/src/gen_server.erl @@ -885,7 +885,7 @@ error_info(_Reason, application_controller, _From, _Msg, _Mod, _State, _Debug) - %% of it instead ok; error_info(Reason, Name, From, Msg, Mod, State, Debug) -> - Log = [SysEvent || {SysEvent,_,_} <- sys:get_log(Debug)], + Log = sys:get_log(Debug), ?LOG_ERROR(#{label=>{gen_server,terminate}, name=>Name, last_message=>Msg, @@ -978,7 +978,7 @@ format_client_log({_From,{Name,Stacktrace}}) -> format_status(Opt, StatusData) -> [PDict, SysState, Parent, Debug, [Name, State, Mod, _Time, _HibernateAfterTimeout]] = StatusData, Header = gen:format_status_header("Status for generic server", Name), - Log = [{Ev, St} || {Ev, St, _FormFunc} <- sys:get_log(Debug)], + Log = sys:get_log(Debug), Specfic = case format_status(Opt, Mod, PDict, State) of S when is_list(S) -> S; S -> [S] |