Skip to content

Commit

Permalink
Merge pull request #7119 from tensor-dev/improve-git-timeout-logging
Browse files Browse the repository at this point in the history
Improve git timeout logging
  • Loading branch information
dzaporozhets committed Jul 23, 2014
2 parents e46b644 + dbefe90 commit 8759577
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/gitlab/satellite/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ def default_options(options = {})
end

def handle_exception(exception)
Gitlab::GitLogger.error(exception.message)
if exception.instance_of?(Grit::Git::GitTimeout)
detailed_message = exception.message
detailed_message << ' ' << exception.command
detailed_message << ' ' << exception.bytes_read
Gitlab::GitLogger.error(detailed_message)
else
Gitlab::GitLogger.error(exception.message)
end
false
end
end
Expand Down

0 comments on commit 8759577

Please sign in to comment.