Move the 'LOG_HEADER' macro above '-include(logger.hrl)'

This commit is contained in:
Feng Lee 2018-12-20 14:37:30 +08:00 committed by Feng Lee
parent 6e1b47f1f9
commit 14a12e0c6c
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,8 @@
-include("emqx.hrl").
-include("emqx_mqtt.hrl").
-define(LOG_HEADER, "[MQTT]").
-include("logger.hrl").
-export([start_link/3]).
@ -48,7 +50,6 @@
idle_timeout
}).
-define(LOG_HEADER, "[TCP]").
-define(DEFAULT_ACTIVE_N, 100).
-define(SOCK_STATS, [recv_oct, recv_cnt, send_oct, send_cnt, send_pend]).