Streamer: Make it less chatty.
authorlain <lain@soykaf.club>
Wed, 21 Feb 2018 14:44:00 +0000 (15:44 +0100)
committerlain <lain@soykaf.club>
Wed, 21 Feb 2018 14:44:00 +0000 (15:44 +0100)
lib/pleroma/web/streamer.ex

index d64e6c393b0ddb71428a5027541d6b5808e32227..a417178bae0e781f82d3af32dfdfafee620b6ae5 100644 (file)
@@ -74,7 +74,6 @@ defmodule Pleroma.Web.Streamer do
     sockets_for_topic = Enum.uniq([socket | sockets_for_topic])
     sockets = Map.put(sockets, topic, sockets_for_topic)
     Logger.debug("Got new conn for #{topic}")
-    IO.inspect(sockets)
     {:noreply, sockets}
   end
 
@@ -84,12 +83,11 @@ defmodule Pleroma.Web.Streamer do
     sockets_for_topic = List.delete(sockets_for_topic, socket)
     sockets = Map.put(sockets, topic, sockets_for_topic)
     Logger.debug("Removed conn for #{topic}")
-    IO.inspect(sockets)
     {:noreply, sockets}
   end
 
   def handle_cast(m, state) do
-    IO.inspect("Unknown: #{inspect(m)}, #{inspect(state)}")
+    Logger.info("Unknown: #{inspect(m)}, #{inspect(state)}")
     {:noreply, state}
   end