diff options
Diffstat (limited to 'lib/ohai/mixin/softlayer_metadata.rb')
-rw-r--r-- | lib/ohai/mixin/softlayer_metadata.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/mixin/softlayer_metadata.rb b/lib/ohai/mixin/softlayer_metadata.rb index dfa16ba8..04d33196 100644 --- a/lib/ohai/mixin/softlayer_metadata.rb +++ b/lib/ohai/mixin/softlayer_metadata.rb @@ -54,11 +54,11 @@ module ::Ohai::Mixin::SoftlayerMetadata if res.code.to_i.between?(200, 299) res.body else - ::Ohai::Log.error("Mixin Softlayer: Unable to fetch item #{full_url}: status (#{res.code}) body (#{res.body})") + logger.error("Mixin Softlayer: Unable to fetch item #{full_url}: status (#{res.code}) body (#{res.body})") nil end rescue => e - ::Ohai::Log.error("Mixin Softlayer: Unable to fetch softlayer metadata from #{u}: #{e.class}: #{e.message}") + logger.error("Mixin Softlayer: Unable to fetch softlayer metadata from #{u}: #{e.class}: #{e.message}") raise e end end |