diff --git a/lib/travis/yml/configs/model/repos.rb b/lib/travis/yml/configs/model/repos.rb index 98c64e40d..525bb6753 100644 --- a/lib/travis/yml/configs/model/repos.rb +++ b/lib/travis/yml/configs/model/repos.rb @@ -32,7 +32,7 @@ def []=(slug, repo) end def fetch(slug, provider) - logger.info "Get Repo for #{slug} #{provider}" + logger.info "Get Repo for #{slug} #{provider}" unless ENV['ENV'] == 'test' Travis::Repo.new(slug, provider).fetch end diff --git a/lib/travis/yml/remote_vcs/client.rb b/lib/travis/yml/remote_vcs/client.rb index 9d5754d72..328005c66 100644 --- a/lib/travis/yml/remote_vcs/client.rb +++ b/lib/travis/yml/remote_vcs/client.rb @@ -23,7 +23,7 @@ def http_options def request(method, name) resp = connection.send(method) { |req| yield(req) } - logger.info("RemoteVcs response #{resp.inspect}") + logger.info("RemoteVcs response #{resp.inspect}") unless ENV['ENV'] == 'test' JSON.parse(resp.body) end diff --git a/lib/travis/yml/remote_vcs/repository.rb b/lib/travis/yml/remote_vcs/repository.rb index 66088e22a..e108ab82e 100644 --- a/lib/travis/yml/remote_vcs/repository.rb +++ b/lib/travis/yml/remote_vcs/repository.rb @@ -5,7 +5,7 @@ module Yml module RemoteVcs class Repository < Client def content(id:, path:, ref:) - logger.info("RemoteVcs Repository #{id}, #{path}") + logger.info("RemoteVcs Repository #{id}, #{path}") unless ENV['ENV'] == 'test' request(:get, __method__) do |req| req.url "repos/#{id}/contents/#{path}" req.params['ref'] = ref