diff options
author | Dan Gudmundsson <[email protected]> | 2017-05-17 15:29:59 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2017-05-17 15:29:59 +0200 |
commit | 91da20e4cc10a1b73672e558be34b14adc8ac0ae (patch) | |
tree | 47361ae8fb89bc5e3f81075352aa8010ae609c12 /lib/kernel/src/disk_log.erl | |
parent | 950c96c30d241bd65abcd79a8a5d8846cd845b05 (diff) | |
parent | 4b9e1dd37f6e55ba1a04fad36d8ed3c0201b1942 (diff) | |
download | otp-91da20e4cc10a1b73672e558be34b14adc8ac0ae.tar.gz otp-91da20e4cc10a1b73672e558be34b14adc8ac0ae.tar.bz2 otp-91da20e4cc10a1b73672e558be34b14adc8ac0ae.zip |
Merge branch 'ferd/kernel/shell-history-storage/OTP-14409'
* ferd/kernel/shell-history-storage/OTP-14409:
Add persistence to history of the non-legacy shell
add option 'quiet' to disk_log
Fix type declaration for disk_log.hrl
Diffstat (limited to 'lib/kernel/src/disk_log.erl')
-rw-r--r-- | lib/kernel/src/disk_log.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/kernel/src/disk_log.erl b/lib/kernel/src/disk_log.erl index 50a20c918c..70cbf1c87c 100644 --- a/lib/kernel/src/disk_log.erl +++ b/lib/kernel/src/disk_log.erl @@ -638,6 +638,8 @@ check_arg([{mode, read_only}|Tail], Res) -> check_arg(Tail, Res#arg{mode = read_only}); check_arg([{mode, read_write}|Tail], Res) -> check_arg(Tail, Res#arg{mode = read_write}); +check_arg([{quiet, Boolean}|Tail], Res) when is_boolean(Boolean) -> + check_arg(Tail, Res#arg{quiet = Boolean}); check_arg(Arg, _) -> {error, {badarg, Arg}}. @@ -1276,7 +1278,8 @@ compare_arg(_Attr, _Val, _A) -> do_open(A) -> #arg{type = Type, format = Format, name = Name, head = Head0, file = FName, repair = Repair, size = Size, mode = Mode, - version = V} = A, + quiet = Quiet, version = V} = A, + disk_log_1:set_quiet(Quiet), Head = mk_head(Head0, Format), case do_open2(Type, Format, Name, FName, Repair, Size, Mode, Head, V) of {ok, Ret, Extra, FormatType, NoItems} -> |