diff --git a/lib/fog/compute.rb b/lib/fog/compute.rb index 1bb14c1a9..5733a7577 100644 --- a/lib/fog/compute.rb +++ b/lib/fog/compute.rb @@ -51,7 +51,7 @@ module Fog Fog::Compute::Linode.new(attributes) when :new_servers require 'fog/bare_metal_cloud/compute' - warn "[DEPRECATION] `new_servers` is deprecated. Please use `bare_metal_cloud` instead." + Fog::Logger.deprecation "`new_servers` is deprecated. Please use `bare_metal_cloud` instead." Fog::Compute::BareMetalCloud.new(attributes) when :baremetalcloud require 'fog/bare_metal_cloud/compute' @@ -72,7 +72,7 @@ module Fog require 'fog/rackspace/compute_v2' Fog::Compute::RackspaceV2.new(attributes) else - warn "[DEPRECATION] First Gen Cloud Servers are deprecated. Please use `:version => :v2` attribute to use Next Gen Cloud Servers." + Fog::Logger.deprecation "First Gen Cloud Servers are deprecated. Please use `:version => :v2` attribute to use Next Gen Cloud Servers." require 'fog/rackspace/compute' Fog::Compute::Rackspace.new(attributes) end