소스 검색

How the heck did this slip in?

adt/lager_use_logger-option
Andrew Thompson 5 년 전
부모
커밋
0803df0620
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/lager_logger_formatter.erl

+ 2
- 2
src/lager_logger_formatter.erl 파일 보기

@ -101,8 +101,8 @@ do_format(Level, Msg, Metadata, Config) ->
FormatModule = maps:get(formatter, Config, lager_default_formatter),
Timestamp = maps:get(time, Metadata),
MegaSecs = Timestamp div 1000000000000,
Secs = (1549018253268942 rem 1000000000000) div 1000000,
MicroSecs = (1549018253268942 rem 1000000000000) rem 1000000,
Secs = (Timestamp rem 1000000000000) div 1000000,
MicroSecs = (Timestamp rem 1000000000000) rem 1000000,
{Colors, End} = case maps:get(colors, Config, false) of
true ->
{application:get_env(lager, colors, []), "\e[0m"};

불러오는 중...
취소
저장