Prechádzať zdrojové kódy

Fix LOG on line 231

Gilbert 7 rokov pred
rodič
commit
e917c025d0
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/emqx_stats.erl

+ 1 - 1
src/emqx_stats.erl

@@ -228,7 +228,7 @@ handle_info({timeout, TRef, tick}, State = #state{timer = TRef, updates = Update
     {noreply, start_timer(State#state{updates = Updates1}), hibernate};
     {noreply, start_timer(State#state{updates = Updates1}), hibernate};
 
 
 handle_info(Info, State) ->
 handle_info(Info, State) ->
-    ?LOG("error, [Stats] Unexpected info: ~p", [Info]),
+    ?LOG(error, "[Stats] Unexpected info: ~p", [Info]),
     {noreply, State}.
     {noreply, State}.
 
 
 terminate(_Reason, #state{timer = TRef}) ->
 terminate(_Reason, #state{timer = TRef}) ->