diff options
author | Tim Smith <tsmith84@gmail.com> | 2019-08-06 20:51:22 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2019-08-06 20:51:22 -0700 |
commit | 1d60af72a9e1cfa7155bf42bcba6b0f25e863324 (patch) | |
tree | 1c4eb7d73f14fe0622e4fc48ec5eccab14107fe2 /lib/mixlib/log/child.rb | |
parent | b7a37d62fca4252b0c80774adaa7f07a36d745fb (diff) | |
download | mixlib-log-1d60af72a9e1cfa7155bf42bcba6b0f25e863324.tar.gz |
Chefstyle fixes
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/mixlib/log/child.rb')
-rw-r--r-- | lib/mixlib/log/child.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mixlib/log/child.rb b/lib/mixlib/log/child.rb index 56376c5..2d7de00 100644 --- a/lib/mixlib/log/child.rb +++ b/lib/mixlib/log/child.rb @@ -36,14 +36,14 @@ module Mixlib # Note that we *only* query the default logger (@logger) and not any other # loggers that may have been added, even though it is possible to configure # two (or more) loggers at different log levels. - [:trace?, :debug?, :info?, :warn?, :error?, :fatal?].each do |method_name| + %i{trace? debug? info? warn? error? fatal?}.each do |method_name| define_method(method_name) do parent.send(method_name) end end def add(severity, message = nil, progname = nil, data: {}, &block) - data = metadata.merge(data) if data.kind_of?(Hash) + data = metadata.merge(data) if data.is_a?(Hash) parent.send(:pass, severity, message, progname, data: data, &block) end |