Przeglądaj źródła

fix(emqx_logger_jsonfmt): attribute import before function definitions

z8674558 4 lat temu
rodzic
commit
d61e931d88
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      src/emqx_logger_jsonfmt.erl

+ 3 - 2
src/emqx_logger_jsonfmt.erl

@@ -32,6 +32,9 @@
 -export([format/2]).
 
 -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]).
 -endif.
 
@@ -220,8 +223,6 @@ json_key(Term) ->
     end.
 
 -ifdef(TEST).
--include_lib("proper/include/proper.hrl").
--include_lib("eunit/include/eunit.hrl").
 
 no_crash_test_() ->
     Opts = [{numtests, 1000}, {to_file, user}],