Skip to content

Commit

Permalink
Ditching some puts.
Browse files Browse the repository at this point in the history
  • Loading branch information
dave committed Nov 1, 2010
1 parent c9dd449 commit 2bee6b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/enigmamachine/download_queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def download_next_video
if Video.waiting_for_download.count > 0 && Video.downloading.count == 0
video = Video.waiting_for_download.first
begin
puts "downloading video #{video.id}"
video.download!
rescue Exception => ex
# don't do anything just yet, until we set up logging properly.
Expand Down
2 changes: 0 additions & 2 deletions lib/enigmamachine/models/video.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ def self.reset_encoding_videos

def self.reset_downloading_videos
Video.downloading.each do |video|
puts "resetting video #{video.id}"
video.reset_download!
end
end
Expand Down Expand Up @@ -226,7 +225,6 @@ def do_download
http = EventMachine::HttpRequest.new(file).get :timeout => 10

http.stream do |data|
puts "what is status?: " + http.response_header.status.to_s
File.open(file_to_encode, 'a') {|f| f.write(data) }
end

Expand Down

0 comments on commit 2bee6b4

Please sign in to comment.