打印日志

dev_video
daiao 5 years ago
parent 007f42720d
commit bfa8ca6521

@ -17,6 +17,8 @@ class Videos::BatchPublishService < ApplicationService
ActiveRecord::Base.transaction do
video_params.each do |param|
video = user.videos.find_by(uuid: param[:video_id])
Rails.logger.info("video.processing_video_apply:#{video.processing_video_apply}")
Rails.logger.info("video.processing_video_apply:#{video}")
next if video.blank? || video.processing_video_apply.present?
raise Error, '视频还未上传完成' if video.vod_uploading?

Loading…
Cancel
Save