Porównaj commity

...

3 Commity
master ... 1.2

Autor SHA1 Wiadomość Data
  Andrew Thompson 4fcb8fd40f Roll version 1.2.2 12 lat temu
  Artem Teslenko e0136f1e9e Remove unnecessary debug message 12 lat temu
  Andrew Thompson 7faafea88e Test and fix for a printable yet improper list 12 lat temu
3 zmienionych plików z 5 dodań i 2 usunięć
  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 Wyświetl plik

@ -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 Wyświetl plik

@ -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 Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz