lib/appsignal/integrations/capistrano/appsignal.cap in appsignal-1.1.1 vs lib/appsignal/integrations/capistrano/appsignal.cap in appsignal-1.1.2

- old
+ new

@@ -1,26 +1,27 @@ namespace :appsignal do task :deploy do env = fetch(:stage, fetch(:rails_env, fetch(:rack_env, 'production'))) user = ENV['USER'] || ENV['USERNAME'] revision = fetch(:appsignal_revision, fetch(:current_revision)) - logger = fetch(:logger, Logger.new($stdout)) appsignal_config = Appsignal::Config.new( ENV['PWD'], env, fetch(:appsignal_config, {}), - logger + Logger.new(StringIO.new) ) if appsignal_config && appsignal_config.active? marker_data = { :revision => revision, :user => user } - marker = Appsignal::Marker.new(marker_data, appsignal_config, logger) + marker = Appsignal::Marker.new(marker_data, appsignal_config) marker.transmit + else + puts 'Not notifying of deploy, config is not active' end end end after 'deploy:finished', 'appsignal:deploy'