fix(emqx_logger_jsonfmt): attribute import before function definitions
This commit is contained in:
parent
70d2e0e905
commit
d61e931d88
|
@ -32,6 +32,9 @@
|
||||||
-export([format/2]).
|
-export([format/2]).
|
||||||
|
|
||||||
-ifdef(TEST).
|
-ifdef(TEST).
|
||||||
|
-include_lib("proper/include/proper.hrl").
|
||||||
|
-include_lib("eunit/include/eunit.hrl").
|
||||||
|
|
||||||
-export([report_cb_1/1, report_cb_2/2, report_cb_crash/2]).
|
-export([report_cb_1/1, report_cb_2/2, report_cb_crash/2]).
|
||||||
-endif.
|
-endif.
|
||||||
|
|
||||||
|
@ -220,8 +223,6 @@ json_key(Term) ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
-ifdef(TEST).
|
-ifdef(TEST).
|
||||||
-include_lib("proper/include/proper.hrl").
|
|
||||||
-include_lib("eunit/include/eunit.hrl").
|
|
||||||
|
|
||||||
no_crash_test_() ->
|
no_crash_test_() ->
|
||||||
Opts = [{numtests, 1000}, {to_file, user}],
|
Opts = [{numtests, 1000}, {to_file, user}],
|
||||||
|
|
Loading…
Reference in New Issue