Debugging.

This commit is contained in:
Roger Braun 2017-11-08 18:04:47 +01:00
parent 0a467bd742
commit 85e97678f4
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ defmodule Pleroma.Web.Streamer do
end
def handle_cast(%{action: :stream, user: user, item: item}, users) do
Logger.debug("Trying to push to #{user.nickname}")
if conn = users[user.id] do
Logger.debug("Pushing item to #{user.id}, #{user.nickname}")
chunk(conn, "event: #{item.type}\ndata: #{item.payload}\n\n")