Skip to content

Commit

Permalink
Use proper logger form configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterLambaster committed Jul 26, 2012
1 parent e82de1c commit ffe860f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/capistrano/recipes/deploy/strategy/base.rb
Expand Up @@ -73,7 +73,7 @@ def system(*args)
private

def logger
@logger ||= configuration[:logger] || Capistrano::Logger.new(:output => STDOUT)
@logger ||= configuration.logger || Capistrano::Logger.new(:output => STDOUT)
end

# The revision to deploy. Must return a real revision identifier,
Expand Down
3 changes: 2 additions & 1 deletion test/deploy/strategy/copy_test.rb
Expand Up @@ -6,10 +6,11 @@
class DeployStrategyCopyTest < Test::Unit::TestCase
def setup
@config = { :application => "captest",
:logger => Capistrano::Logger.new(:output => StringIO.new),
:releases_path => "/u/apps/test/releases",
:release_path => "/u/apps/test/releases/1234567890",
:real_revision => "154" }
@config.stubs(:logger).returns(stub_everything)

@source = mock("source")
@config.stubs(:source).returns(@source)
@strategy = Capistrano::Deploy::Strategy::Copy.new(@config)
Expand Down

0 comments on commit ffe860f

Please sign in to comment.