summaryrefslogtreecommitdiff
path: root/lib/mixlib/log
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2019-12-20 21:46:30 -0800
committerTim Smith <tsmith84@gmail.com>2019-12-20 21:46:30 -0800
commit65f4ab892926ee01cd5910d325e2306a82580232 (patch)
treed7730b8c1767baf0a333f4538f020625ca971d7b /lib/mixlib/log
parent534a4b88268cb049a4bda8c3d1250c8ac6968631 (diff)
downloadmixlib-log-65f4ab892926ee01cd5910d325e2306a82580232.tar.gz
Substitute require for require_relativerelative
require_relative is significantly faster and should be used when available. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/mixlib/log')
-rw-r--r--lib/mixlib/log/child.rb2
-rw-r--r--lib/mixlib/log/logger.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/mixlib/log/child.rb b/lib/mixlib/log/child.rb
index 2d7de00..2b82cea 100644
--- a/lib/mixlib/log/child.rb
+++ b/lib/mixlib/log/child.rb
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require "mixlib/log/logging"
+require_relative "logging"
module Mixlib
module Log
diff --git a/lib/mixlib/log/logger.rb b/lib/mixlib/log/logger.rb
index e1f8929..378c6b9 100644
--- a/lib/mixlib/log/logger.rb
+++ b/lib/mixlib/log/logger.rb
@@ -1,5 +1,5 @@
require "logger"
-require "mixlib/log/logging"
+require_relative "logging"
# A subclass of Ruby's stdlib Logger with all the mutex and logrotation stuff
# ripped out, and metadata added in.