lib/appsignal/integrations/capistrano/capistrano_2_tasks.rb in appsignal-1.1.1 vs lib/appsignal/integrations/capistrano/capistrano_2_tasks.rb in appsignal-1.1.2
- old
+ new
@@ -13,24 +13,26 @@
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 = Marker.new(marker_data, appsignal_config, logger)
+ marker = Marker.new(marker_data, appsignal_config)
if config.dry_run
- logger.info('Dry run: Deploy marker not actually sent.')
+ puts 'Dry run: AppSignal deploy marker not actually sent.'
else
marker.transmit
end
+ else
+ puts 'Not notifying of deploy, config is not active'
end
end
end
end
end