diff options
author | Siri Hansen <[email protected]> | 2018-05-16 16:10:30 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-05-23 10:39:14 +0200 |
commit | 8aa64c90ddd20ec0ca8cc5fe92a6124324c51da5 (patch) | |
tree | 4faf98823094ebca7ba9c4a82834956b1c77bd1e /lib/kernel/test/logger_formatter_SUITE.erl | |
parent | 58abc1e47e6f44c75ef8e86f973270c6e23e89f7 (diff) | |
download | otp-8aa64c90ddd20ec0ca8cc5fe92a6124324c51da5.tar.gz otp-8aa64c90ddd20ec0ca8cc5fe92a6124324c51da5.tar.bz2 otp-8aa64c90ddd20ec0ca8cc5fe92a6124324c51da5.zip |
Use system_time instead of monotonic_time as timestamp in logger
Diffstat (limited to 'lib/kernel/test/logger_formatter_SUITE.erl')
-rw-r--r-- | lib/kernel/test/logger_formatter_SUITE.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/kernel/test/logger_formatter_SUITE.erl b/lib/kernel/test/logger_formatter_SUITE.erl index 9baadfd65a..c171165944 100644 --- a/lib/kernel/test/logger_formatter_SUITE.erl +++ b/lib/kernel/test/logger_formatter_SUITE.erl @@ -546,8 +546,7 @@ default_time_format(Timestamp) -> default_time_format(Timestamp,Utc) -> default_time_format(Timestamp,Utc,$T). -default_time_format(Timestamp0,Utc,Sep) -> - Timestamp=Timestamp0+erlang:time_offset(microsecond), +default_time_format(Timestamp,Utc,Sep) -> Offset = if Utc -> "Z"; true -> "" end, @@ -569,7 +568,7 @@ my_try(Fun) -> try Fun() catch C:R:S -> {C,R,hd(S)} end. timestamp() -> - erlang:monotonic_time(microsecond). + erlang:system_time(microsecond). %% necessary? add_time(#{time:=_}=Meta) -> |