lib/lorekeeper/simple_logger.rb in lorekeeper-2.6.2 vs lib/lorekeeper/simple_logger.rb in lorekeeper-2.6.3

- old
+ new

@@ -36,10 +36,10 @@ "Lorekeeper Simple logger. IO: #{@file.inspect}" end # Extending the logger API with methods error_with_data, etc LOGGING_METHODS.each do |method_name| - define_method "#{method_name}_with_data", ->(message_param = nil, data = {}) { + define_method :"#{method_name}_with_data", ->(message_param = nil, data = {}) { return true if METHOD_SEVERITY_MAP[method_name] < @level log_data(METHOD_SEVERITY_MAP[method_name], "#{message_param}, data: #{data}") } end