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/sys.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/sys.erl')
-rw-r--r-- | lib/stdlib/src/sys.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/sys.erl b/lib/stdlib/src/sys.erl index 6775dfe933..09fe497d11 100644 --- a/lib/stdlib/src/sys.erl +++ b/lib/stdlib/src/sys.erl @@ -548,7 +548,7 @@ debug_cmd({log, print}, Debug) -> {ok, Debug}; debug_cmd({log, get}, Debug) -> NLog = get_debug(log, Debug, nlog_new()), - {{ok, nlog_get(NLog)}, Debug}; + {{ok, [Event || {Event, _State, _FormFunc} <- nlog_get(NLog)]}, Debug}; debug_cmd({log_to_file, false}, Debug) -> NDebug = close_log_file(Debug), {ok, NDebug}; @@ -639,7 +639,7 @@ print_log(Debug) -> Debug :: [dbg_opt()]. get_log(Debug) -> NLog = get_debug(log, Debug, nlog_new()), - nlog_get(NLog). + [Event || {Event, _State, _FormFunc} <- nlog_get(NLog)]. close_log_file(Debug) -> case get_debug2(log_to_file, Debug, []) of |