aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sasl/src/sasl_report_file_h.erl
diff options
context:
space:
mode:
authorSerge Aleynikov <[email protected]>2014-04-20 12:37:57 -0400
committerBjörn Gustavsson <[email protected]>2015-05-28 13:34:45 +0200
commit885ad5783c33d7f6115c5ad55c401102f10039d6 (patch)
treeb74e9cbc55f22cb5f797ff37be50c964ca354a41 /lib/sasl/src/sasl_report_file_h.erl
parentce96ab6d64768cd6536011ccdecc08191c238220 (diff)
downloadotp-885ad5783c33d7f6115c5ad55c401102f10039d6.tar.gz
otp-885ad5783c33d7f6115c5ad55c401102f10039d6.tar.bz2
otp-885ad5783c33d7f6115c5ad55c401102f10039d6.zip
Customize SASL error_logger file opening modes
Include the ability to open a SASL error log file in append mode at startup vs currently implemented "rewrite-always" mode.
Diffstat (limited to 'lib/sasl/src/sasl_report_file_h.erl')
-rw-r--r--lib/sasl/src/sasl_report_file_h.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sasl/src/sasl_report_file_h.erl b/lib/sasl/src/sasl_report_file_h.erl
index f42b4b5ff2..a5bd0ac055 100644
--- a/lib/sasl/src/sasl_report_file_h.erl
+++ b/lib/sasl/src/sasl_report_file_h.erl
@@ -28,9 +28,9 @@
handle_event/2, handle_call/2, handle_info/2,
terminate/2]).
-init({File, Type}) ->
+init({File, Modes, Type}) when is_list(Modes) ->
process_flag(trap_exit, true),
- case file:open(File, [write]) of
+ case file:open(File, Modes) of
{ok,Fd} ->
{ok, {Fd, File, Type}};
What ->