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() ->

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