require 'puppet/util/autoload'
require 'puppet/util/log'

Puppet::Util::Log.create({:level => :warning, :source => __FILE__, :message => "\n\n***** Monkey-patching out gem autoload feature *****\n\n"})

Puppet::Util::Autoload.class_eval do
  def self.gem_directories
    []
  end
end

require 'puppet/util/autoload'
require 'puppet/util/log'

Puppet::Util::Log.create({:level => :warning, :source => __FILE__, :message => "***** Monkey-patching out gem autoload feature *****"})

Puppet::Util::Autoload.class_eval do
  def self.gem_directories
    []
  end
end

Remove newlines from monkey-patch warning
Remove newlines from monkey-patch warning

These produce "empty" log events in Kibana which makes me :(
```
@fields.syslog_program:puppet AND @message:"(/var/lib/puppet/lib/puppet/provider/package/autoload_monkey_patch.rb)"
```
