diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-12 19:56:23 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-12 20:00:31 +0100 |
commit | ddb0a8d1545629e1e56397bed43c388dcb85324f (patch) | |
tree | 572e0a87bd7d3ed9b7c064a68cd358000a2a7ab1 /lib/gitlab_net.rb | |
parent | 63e16172e524d83e4fe04945e277bc21dda6d777 (diff) | |
download | gitlab-shell-ddb0a8d1545629e1e56397bed43c388dcb85324f.tar.gz |
Log full Net::HTTP error.
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r-- | lib/gitlab_net.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb index 6e76c98..e74c97f 100644 --- a/lib/gitlab_net.rb +++ b/lib/gitlab_net.rb @@ -101,7 +101,8 @@ class GitlabNet begin response = http.start { http.request(request) } - rescue + rescue => e + $logger.warn "Failed to connect to internal API <#{method.to_s.upcase} #{url}>: #{e.inspect}" raise ApiUnreachableError end |