Skip to content
Snippets Groups Projects

Improve git timeout logging

Created by: Olegas

When timeout occurs in Grit, by default GitTimeout exception doesn't contains information about command and bytes_read property.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
48 48 end
49 49
50 50 def handle_exception(exception)
51 Gitlab::GitLogger.error(exception.message)
51 if exception.instance_of?(Grit::Git::GitTimeout)
52 detailed_message = exception.message
  • Created by: houndci-bot

    Line is too long. [107/80]
    Prefer single-quoted strings when you don't need string interpolation or special symbols.

    By Administrator on 2014-06-12T09:51:27 (imported from GitLab project)

    By Administrator on 2014-06-12T09:51:27 (imported from GitLab)

  • Created by: jvanbaarsen

    @randx Looks ok

    By Administrator on 2014-07-09T19:05:16 (imported from GitLab project)

    By Administrator on 2014-07-09T19:05:16 (imported from GitLab)

  • Created by: dzaporozhets

    @Olegas can you please resubmit to master branch?

    By Administrator on 2014-07-23T17:24:40 (imported from GitLab project)

    By Administrator on 2014-07-23T17:24:40 (imported from GitLab)

  • Created by: Olegas

    @randx rebase it to master first?

    By Administrator on 2014-08-02T05:59:17 (imported from GitLab project)

    By Administrator on 2014-08-02T05:59:17 (imported from GitLab)

  • Please register or sign in to reply
    Loading