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_statem.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_statem.erl')
-rw-r--r-- | lib/stdlib/src/gen_statem.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/gen_statem.erl b/lib/stdlib/src/gen_statem.erl index 3eb9ff3aca..4efe68d7f9 100644 --- a/lib/stdlib/src/gen_statem.erl +++ b/lib/stdlib/src/gen_statem.erl @@ -807,7 +807,7 @@ format_status( [PDict,SysState,Parent,Debug, #state{name = Name, postponed = P} = S]) -> Header = gen:format_status_header("Status for state machine", Name), - Log = [{Event, State} || {Event, State, _FormFunc} <- sys:get_log(Debug)], + Log = sys:get_log(Debug), [{header,Header}, {data, [{"Status",SysState}, @@ -1953,7 +1953,7 @@ error_info( state_enter = StateEnter, postponed = P} = S, Q) -> - Log = [SysEvent || {SysEvent,_,_} <- sys:get_log(Debug)], + Log = sys:get_log(Debug), ?LOG_ERROR(#{label=>{gen_statem,terminate}, name=>Name, queue=>Q, |