We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cca7048 commit 97670c7Copy full SHA for 97670c7
cookbooks/boxcutter_chef/files/config/attribute_changed_handler.rb
@@ -11,7 +11,7 @@
11
Chef.event_handler do
12
on :attribute_changed do |precedence, key, value|
13
# Do absolutely nothing unless debug logging is enabled
14
- next unless [:debug, :trace].include?(Chef::Config[:log_level])
+ next unless Chef::Log.debug?
15
16
# Skip attributes coming from ohai
17
next if precedence == :automatic
@@ -24,7 +24,7 @@
24
filename, line_number = frame.split(':')
25
location = "#{filename}:#{line_number}"
26
Chef::Log.debug(
27
- "- node.#{precedence}#{key.map { |n| "[\"#{n}\"]" }.join} = #{value} at #{location}",
+ "Attribute change: node.#{precedence}#{key.map { |n| "[\"#{n}\"]" }.join} = #{value} at #{location}",
28
)
29
end
30
0 commit comments