Compare commits

...

3 次程式碼提交
master ... 1.2

作者 SHA1 備註 提交日期
  Andrew Thompson 4fcb8fd40f Roll version 1.2.2 12 年之前
  Artem Teslenko e0136f1e9e Remove unnecessary debug message 12 年之前
  Andrew Thompson 7faafea88e Test and fix for a printable yet improper list 12 年之前
共有 3 個文件被更改,包括 5 次插入2 次删除
分割檢視
  1. +1
    -1
      src/lager.app.src
  2. +0
    -1
      src/lager.erl
  3. +4
    -0
      src/lager_trunc_io.erl

+ 1
- 1
src/lager.app.src 查看文件

@ -3,7 +3,7 @@
{application, lager,
[
{description, "Erlang logging framework"},
{vsn, "1.2.1"},
{vsn, "1.2.2"},
{modules, []},
{applications, [
kernel,

+ 0
- 1
src/lager.erl 查看文件

@ -232,7 +232,6 @@ set_loglevel(Handler, Level) when is_atom(Level) ->
%% @doc Set the loglevel for a particular backend that has multiple identifiers
%% (eg. the file backend).
set_loglevel(Handler, Ident, Level) when is_atom(Level) ->
io:format("handler: ~p~n", [{Handler, Ident}]),
Reply = gen_event:call(lager_event, {Handler, Ident}, {set_loglevel, Level}, infinity),
%% recalculate min log level
MinLog = minimum_loglevel(get_loglevels()),

+ 4
- 0
src/lager_trunc_io.erl 查看文件

@ -392,6 +392,9 @@ alist([H|T], Max, #print_options{force_strings=true} = Options) when is_integer(
alist(_, _, #print_options{force_strings=true}) ->
erlang:error(badarg);
alist([H|_L], _Max, _Options) ->
throw({unprintable, H});
alist(H, _Max, _Options) ->
%% improper list
throw({unprintable, H}).
%% is the first character in the atom alphabetic & lowercase?
@ -622,6 +625,7 @@ list_printing_test() ->
%%improper list
?assertEqual("[1,2,3|4]", lists:flatten(format("~P", [[1|[2|[3|4]]], 5], 50))),
?assertEqual("[1|1]", lists:flatten(format("~P", [[1|1], 5], 50))),
?assertEqual("[9|9]", lists:flatten(format("~p", [[9|9]], 50))),
ok.
tuple_printing_test() ->

Loading…
取消
儲存