add donghuoliren debug
This commit is contained in:
parent
7b6d46cb69
commit
6b47389d5c
@ -86,8 +86,8 @@ init([]) ->
|
||||
{noreply, NewState :: #state{}, timeout() | hibernate} |
|
||||
{stop, Reason :: term(), Reply :: term(), NewState :: #state{}} |
|
||||
{stop, Reason :: term(), NewState :: #state{}}).
|
||||
handle_call(get_status, _From, State = #state{succ_counter = SuccCounter, fail_counter = FailCounter}) ->
|
||||
{reply, {ok, #{succ => SuccCounter, fail => FailCounter}}, State}.
|
||||
handle_call(get_status, _From, State = #state{succ_counter = SuccCounter, location_map = LocationMap, fail_counter = FailCounter}) ->
|
||||
{reply, {ok, #{succ => SuccCounter, location_map => LocationMap, fail => FailCounter}}, State}.
|
||||
|
||||
%% @private
|
||||
%% @doc Handling cast messages
|
||||
@ -99,6 +99,7 @@ handle_cast({forward, LocationCode, DynamicLocationCode, EventType, Params},
|
||||
State = #state{url = Url, token = Token, location_map = LocationMap, logger_pid = LoggerPid, succ_counter = SuccCounter, fail_counter = FailCounter}) ->
|
||||
|
||||
Location = maps:get(LocationCode, LocationMap, <<"">>),
|
||||
lager:debug("[iot_donghuoliren_endpoint] location_code: ~p, location: ~ts", [LocationCode, Location]),
|
||||
case format_event(Location, DynamicLocationCode, EventType, Params) of
|
||||
{ok, Body} ->
|
||||
%% 签名信息
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user