Skip to content

Commit a61236d

Browse files
authored
Use better check for debug log level (#51)
1 parent d653e41 commit a61236d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cookbooks/boxcutter_chef/files/config/attribute_changed_handler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Chef.event_handler do
1212
on :attribute_changed do |precedence, key, value|
1313
# Do absolutely nothing unless debug logging is enabled
14-
next unless Chef::Log.debug?
14+
next unless [:debug, :trace].include?(Chef::Config[:log_level])
1515

1616
# Skip attributes coming from ohai
1717
next if precedence == :automatic

0 commit comments

Comments
 (0)