add log when broadcast is ignored
This commit is contained in:
@@ -65,6 +65,10 @@ class StreamNotificationsController < ApplicationController
|
|||||||
@broadcast = Broadcast.find_by(stream_uid: notification_object_id)
|
@broadcast = Broadcast.find_by(stream_uid: notification_object_id)
|
||||||
end
|
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?
|
head :ok if @broadcast.nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user