Permalink
Browse files

Added more verbose diagnostics

Will now also print the db row
  • Loading branch information...
1 parent 68bd6e0 commit 92d6683bc94e08c4739aa13fb6e387a8d861f095 @OmriShiv OmriShiv committed Apr 21, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 AutomaticCoder/auto_coder.rb
@@ -116,6 +116,7 @@ def row_to_sequence(row, number)
f = File.new("#{@options[:actor]}_#{@options[:repository]}_seq.txt", 'w') #creating sequence file
puts "Looking for repo #{@options[:repository]} with owner #{@options[:actor]}... This may take some time...\n"
db.execute("Select * From events where repository_owner='#{@options[:actor]}' AND repository_name='#{@options[:repository]}'") do |row|
+ puts row if @options[:verbose]
f.puts(row_to_sequence(row, n))
n += 1
end
@@ -124,6 +125,7 @@ def row_to_sequence(row, number)
f = File.new("#{@options[:repository]}_seq.txt", 'w') #creating sequence file
puts "Looking for all projects from repo #{@options[:repository]}... This may take some time...\n"
rows = db.execute("Select * From events where repository_name='#{@options[:repository]}'") do |row|
+ puts row if @options[:verbose]
f.puts(row_to_sequence(row, n))
n += 1
end

0 comments on commit 92d6683

Please sign in to comment.