aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sasl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-05-21 16:52:23 +0200
committerSiri Hansen <[email protected]>2018-05-23 11:11:56 +0200
commitca1bf7a9d915a973203aa046bb9f921c11681ee0 (patch)
treecbe623f606325472db857f3a1d6c8552009eeff9 /lib/sasl
parentd35c100a10239edc669b465a2176000ffcc1300f (diff)
downloadotp-ca1bf7a9d915a973203aa046bb9f921c11681ee0.tar.gz
otp-ca1bf7a9d915a973203aa046bb9f921c11681ee0.tar.bz2
otp-ca1bf7a9d915a973203aa046bb9f921c11681ee0.zip
Change handler id for sasl handler from sasl_h to sasl
Diffstat (limited to 'lib/sasl')
-rw-r--r--lib/sasl/doc/src/sasl_app.xml4
-rw-r--r--lib/sasl/src/sasl.erl4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/sasl/doc/src/sasl_app.xml b/lib/sasl/doc/src/sasl_app.xml
index eb1e87d9a3..0a9e6483f0 100644
--- a/lib/sasl/doc/src/sasl_app.xml
+++ b/lib/sasl/doc/src/sasl_app.xml
@@ -133,10 +133,10 @@
obtained by setting the Kernel application environment
variable <seealso marker="kernel:kernel_app#logger_sasl_compatible"><c>logger_sasl_compatible=true</c></seealso>. This will add a
second instance of the standard logger handler
- named <c>sasl_h</c>, which will only print the SASL reports. No
+ named <c>sasl</c>, which will only print the SASL reports. No
SASL reports will then be printed by the Kernel logger
handler.</p>
- <p>The <c>sasl_h</c> handler will be configured according to the
+ <p>The <c>sasl</c> handler will be configured according to the
values of the following SASL application environment
variables.</p>
<taglist>
diff --git a/lib/sasl/src/sasl.erl b/lib/sasl/src/sasl.erl
index 57e0c6ca82..92b80694d7 100644
--- a/lib/sasl/src/sasl.erl
+++ b/lib/sasl/src/sasl.erl
@@ -131,7 +131,7 @@ add_sasl_logger(std, undefined) -> ok;
add_sasl_logger(Dest, Level) ->
FC = #{legacy_header=>true,
single_line=>false},
- ok = logger:add_handler(sasl_h,logger_std_h,
+ ok = logger:add_handler(sasl,logger_std_h,
#{level=>Level,
filter_default=>stop,
filters=>
@@ -146,7 +146,7 @@ add_sasl_logger(Dest, Level) ->
delete_sasl_logger(undefined) -> ok;
delete_sasl_logger(std) -> ok;
delete_sasl_logger(_Type) ->
- _ = logger:remove_handler(sasl_h),
+ _ = logger:remove_handler(sasl),
ok.
add_error_logger_mf(undefined) -> ok;