Skip to content

Commit

Permalink
Minor fix, add log
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jul 29, 2013
1 parent 1e58322 commit e506de6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/gitolite_hooks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def post_receive
begin
@repository.fetch_changesets
rescue Redmine::Scm::Adapters::CommandFailed => e
logger.error "[GitHosting] error during fetching changesets: #{e.message}"
GitHosting.logger.error "[GitHosting] error during fetching changesets: #{e.message}"
end
y << "Done\n"

Expand Down Expand Up @@ -131,7 +131,7 @@ def post_receive
begin
@repository.fetch_changesets
rescue Redmine::Scm::Adapters::CommandFailed => e
logger.error "[GitHosting] error during fetching changesets: #{e.message}"
GitHosting.logger.error "[GitHosting] error during fetching changesets: #{e.message}"
end
output.write("Done\n")
output.flush
Expand Down
1 change: 1 addition & 0 deletions app/models/git_repository_extra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def validate_encoded_time(clear_time, encoded_time)
end
end
rescue Exception => e
GitHosting.logger.error "[GitHosting] error in validate_encoded_time(): #{e.message}"
end
valid
end
Expand Down

0 comments on commit e506de6

Please sign in to comment.