add log when broadcast is ignored

This commit is contained in:
Bilal
2020-06-29 17:10:06 +02:00
parent 56b66bbf67
commit 848c02d88f

View File

@@ -65,6 +65,10 @@ class StreamNotificationsController < ApplicationController
@broadcast = Broadcast.find_by(stream_uid: notification_object_id)
end
if @broadcast.nil?
logger.info "Ignoring broadcast from other environment. Type = #{notification_type}. Id = #{live_stream_id} / #{notification_object_id}"
head :ok
end
head :ok if @broadcast.nil?
end