diff options
author | Siri Hansen <[email protected]> | 2018-05-16 14:12:23 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2018-05-21 17:43:53 +0200 |
commit | 0afab64f105c09976c7c07a64f54bf962ff9a18f (patch) | |
tree | 4a12eb3bd9a19569deb77f88ea1c74eca457d9e6 /lib/kernel/test/error_logger_warn_SUITE.erl | |
parent | 5d49f8a25005945b7260facc1a985c294746616b (diff) | |
download | otp-0afab64f105c09976c7c07a64f54bf962ff9a18f.tar.gz otp-0afab64f105c09976c7c07a64f54bf962ff9a18f.tar.bz2 otp-0afab64f105c09976c7c07a64f54bf962ff9a18f.zip |
Format logger timestamps according to RFC3339
Diffstat (limited to 'lib/kernel/test/error_logger_warn_SUITE.erl')
-rw-r--r-- | lib/kernel/test/error_logger_warn_SUITE.erl | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/kernel/test/error_logger_warn_SUITE.erl b/lib/kernel/test/error_logger_warn_SUITE.erl index a8087e11f9..ef55a2d339 100644 --- a/lib/kernel/test/error_logger_warn_SUITE.erl +++ b/lib/kernel/test/error_logger_warn_SUITE.erl @@ -480,9 +480,12 @@ rb_utc() -> UtcLog=case application:get_env(sasl,utc_log) of {ok,true} -> true; - _AllOthers -> + {ok,false} -> application:set_env(sasl,utc_log,true), - false + false; + undefined -> + application:set_env(sasl,utc_log,true), + undefined end, application:start(sasl), rb:start([{report_dir, rd()}]), @@ -494,7 +497,12 @@ rb_utc() -> Sum=one_rb_findstr([],"UTC"), rb:stop(), application:stop(sasl), - application:set_env(sasl,utc_log,UtcLog), + case UtcLog of + undefined -> + application:unset_env(sasl,utc_log); + _ -> + application:set_env(sasl,utc_log,UtcLog) + end, stop_node(Node), ok. |