调试、打印

This commit is contained in:
huang 2015-07-24 23:36:24 +08:00
parent 0a1afd7c45
commit 6aa332d1f6
1 changed files with 2 additions and 3 deletions

View File

@ -711,8 +711,7 @@ update
end end
all_author = all_author.collect {|c| c.gsub(%r{<.+@.+>}, '') } all_author = all_author.collect {|c| c.gsub(%r{<.+@.+>}, '') }
commits_by_author = repository.commits(all_author, @date_from, @date_to) commits_by_author = repository.commits(all_author, @date_from, @date_to)
logger.info "start******************************************************************" + commits_by_author Rails.logger.debug "######################################{commits_by_author}"
logger.info "end**************************************************************8"
fields = commits_by_author.collect {|r| r.first} fields = commits_by_author.collect {|r| r.first}
commits_data = commits_by_author.collect {|r| r.last} commits_data = commits_by_author.collect {|r| r.last}
@ -721,7 +720,7 @@ update
commits_data = commits_data + [0]*(10 - commits_data.length) if commits_data.length<10 commits_data = commits_data + [0]*(10 - commits_data.length) if commits_data.length<10
# Remove email adress in usernames # Remove email adress in usernames
# fields = fields.collect {|c| c.gsub(%r{<.+@.+>}, '') } fields = fields.collect {|c| c.gsub(%r{<.+@.+>}, '') }
graph = SVG::Graph::BarHorizontal.new( graph = SVG::Graph::BarHorizontal.new(
:height => 400, :height => 400,