diff options
author | Siri Hansen <[email protected]> | 2018-05-21 16:47:46 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-05-23 11:11:44 +0200 |
commit | d35c100a10239edc669b465a2176000ffcc1300f (patch) | |
tree | 6a8c158a14d10fd092970b4e73da2b4cd74535b8 /lib/sasl | |
parent | e484181ecc5c3e2928d10632138837eba3c3229e (diff) | |
download | otp-d35c100a10239edc669b465a2176000ffcc1300f.tar.gz otp-d35c100a10239edc669b465a2176000ffcc1300f.tar.bz2 otp-d35c100a10239edc669b465a2176000ffcc1300f.zip |
Change Compare parameter to logger_filters:domain/2
This configuration option has been removed. logger_formatter will read
the utc_log configuration parameter and format the timestamp
accordingly.
Diffstat (limited to 'lib/sasl')
-rw-r--r-- | lib/sasl/src/sasl.erl | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/sasl/src/sasl.erl b/lib/sasl/src/sasl.erl index 9359bdb30e..57e0c6ca82 100644 --- a/lib/sasl/src/sasl.erl +++ b/lib/sasl/src/sasl.erl @@ -129,15 +129,8 @@ get_mf_maxf() -> add_sasl_logger(undefined, _Level) -> ok; add_sasl_logger(std, undefined) -> ok; add_sasl_logger(Dest, Level) -> - FC0 = #{legacy_header=>true, - single_line=>false, - template=>[{logger_formatter,header},"\n",msg,"\n"]}, - FC = case application:get_env(sasl,utc_log) of - {ok,Bool} when is_boolean(Bool) -> - FC0#{utc=>Bool}; - _ -> - FC0 - end, + FC = #{legacy_header=>true, + single_line=>false}, ok = logger:add_handler(sasl_h,logger_std_h, #{level=>Level, filter_default=>stop, @@ -146,7 +139,7 @@ add_sasl_logger(Dest, Level) -> {fun logger_filters:remote_gl/2,stop}}, {sasl_domain, {fun logger_filters:domain/2, - {log,equals,[beam,erlang,otp,sasl]}}}], + {log,equal,[beam,erlang,otp,sasl]}}}], logger_std_h=>#{type=>Dest}, formatter=>{logger_formatter,FC}}). |