Selaa lähdekoodia

Remove code causing some warnings

pull/509/head
Luke Bakken 5 vuotta sitten
vanhempi
commit
f03fa288d0
No known key found for this signature in database GPG Key ID: B707DD932540186E
6 muutettua tiedostoa jossa 14 lisäystä ja 14 poistoa
  1. +0
    -1
      src/error_logger_lager_h.erl
  2. +0
    -1
      src/lager_app.erl
  3. +7
    -8
      src/lager_default_formatter.erl
  4. +7
    -1
      test/compress_pr_record_test.erl
  5. +0
    -2
      test/lager_rotate.erl
  6. +0
    -1
      test/zzzz_gh280_crash.erl

+ 0
- 1
src/error_logger_lager_h.erl Näytä tiedosto

@ -58,7 +58,6 @@
end).
-ifdef(TEST).
-compile(export_all).
%% Make CRASH synchronous when testing, to avoid timing headaches
-define(CRASH_LOG(Event),
catch(gen_server:call(lager_crash_log, {log, Event}))).

+ 0
- 1
src/lager_app.erl Näytä tiedosto

@ -23,7 +23,6 @@
-behaviour(application).
-include("lager.hrl").
-ifdef(TEST).
-compile([export_all]).
-include_lib("eunit/include/eunit.hrl").
-endif.
-export([start/0,

+ 7
- 8
src/lager_default_formatter.erl Näytä tiedosto

@ -484,14 +484,13 @@ basic_test_() ->
},
{"node formatting basic",
begin
[N, F] = format(lager_msg:new("Message",
Now,
info,
[{pid, self()}],
[]),
[node, "foo"]),
?_assertEqual("foo", F),
?_assertNotEqual(nomatch, re:run(N, <<"@">>))
[N, "foo"] = format(lager_msg:new("Message",
Now,
info,
[{pid, self()}],
[]),
[node, "foo"]),
?_assertNotMatch(nomatch, re:run(N, <<"@">>))
end
}
].

+ 7
- 1
test/compress_pr_record_test.erl Näytä tiedosto

@ -2,7 +2,13 @@
-compile([{parse_transform, lager_transform}]).
-record(a, {field1, field2, foo, bar, baz, zyu, zix}).
-record(a, {field1 :: term(),
field2 :: term(),
foo :: term(),
bar :: term(),
baz :: term(),
zyu :: term(),
zix :: term()}).
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").

+ 0
- 2
test/lager_rotate.erl Näytä tiedosto

@ -20,8 +20,6 @@
-module(lager_rotate).
-compile(export_all).
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-endif.

+ 0
- 1
test/zzzz_gh280_crash.erl Näytä tiedosto

@ -5,7 +5,6 @@
%% and lager starts up to replace the current handlers with its own. This causes a start up crash because
%% OTP error logging modules do not have any notion of a lager-style log level.
-module(zzzz_gh280_crash).
-compile(export_all).
-include_lib("eunit/include/eunit.hrl").

Ladataan…
Peruuta
Tallenna