summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-07-31 12:04:00 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-07-31 12:04:00 -0700
commit1d4809ae61fb739cff39222f223b6c3274b61740 (patch)
treebf23f662da6d881801034a829f1480b23444a45e
parenta3b2274a41bdb586e85a23261286002294820273 (diff)
downloadchef-1d4809ae61fb739cff39222f223b6c3274b61740.tar.gz
Revert "CHEF-4028: Use the levels constant from mixlib-log"
This reverts commit 7219db1ff7dbc5fc9c9f29cb43a319ec69c9430a.
-rw-r--r--lib/chef/provider/log.rb4
1 files 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