ソースを参照

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"};

読み込み中…
キャンセル
保存