Explorar el Código

fix print subscription

Feng hace 9 años
padre
commit
c41f2c97f3
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      src/emqttd_cli.erl

+ 4 - 4
src/emqttd_cli.erl

@@ -530,10 +530,10 @@ print({ClientId, _ClientPid, CleanSess, SessInfo}) ->
            "created_at=~w)~n",
             [ClientId, CleanSess | [format(Key, get_value(Key, SessInfo)) || Key <- InfoKeys]]).
 
-print(subscription, {Sub, Topic, Opts}) when is_pid(Sub) ->
-    ?PRINT("~p -> ~s: ~p~n", [Sub, Topic, Opts]);
-print(subscription, {Sub, Topic, Opts}) ->
-    ?PRINT("~s -> ~s: ~p~n", [Sub, Topic, Opts]).
+print(subscription, {Sub, Topic}) when is_pid(Sub) ->
+    ?PRINT("~p -> ~s~n", [Sub, Topic]);
+print(subscription, {Sub, Topic}) ->
+    ?PRINT("~s -> ~s~n", [Sub, Topic]).
 
 format(created_at, Val) ->
     emqttd_time:now_to_secs(Val);