From 1d4809ae61fb739cff39222f223b6c3274b61740 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Thu, 31 Jul 2014 12:04:00 -0700 Subject: Revert "CHEF-4028: Use the levels constant from mixlib-log" This reverts commit 7219db1ff7dbc5fc9c9f29cb43a319ec69c9430a. --- lib/chef/provider/log.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/chef/provider/log.rb b/lib/chef/provider/log.rb index e65f01e69a..a98ad1e1a2 100644 --- a/lib/chef/provider/log.rb +++ b/lib/chef/provider/log.rb @@ -44,8 +44,8 @@ class Chef Chef::Log.send(@new_resource.level, @new_resource.message) # resolve the integers for the current log levels - global_level = Mixlib::Log::LEVELS.fetch(Chef::Log.level) - resource_level = Mixlib::Log::LEVELS.fetch(@new_resource.level) + global_level = @@levels.index(Chef::Log.level) + resource_level = @@levels.index(@new_resource.level) # If the resource level is greater than or the same os the global # level, then it should have been written to the log. Mark the -- cgit v1.2.1