mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/logger] Prefer require_relative, it's a little bit faster.
https://github.com/ruby/logger/commit/1e2aab4bea
This commit is contained in:
parent
7ef0856287
commit
3fdb963827
2 changed files with 7 additions and 6 deletions
|
@ -11,11 +11,12 @@
|
|||
# A simple system for logging messages. See Logger for more documentation.
|
||||
|
||||
require 'monitor'
|
||||
require 'logger/version'
|
||||
require 'logger/formatter'
|
||||
require 'logger/log_device'
|
||||
require 'logger/severity'
|
||||
require 'logger/errors'
|
||||
|
||||
require_relative 'logger/version'
|
||||
require_relative 'logger/formatter'
|
||||
require_relative 'logger/log_device'
|
||||
require_relative 'logger/severity'
|
||||
require_relative 'logger/errors'
|
||||
|
||||
# == Description
|
||||
#
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require 'logger/period'
|
||||
require_relative 'period'
|
||||
|
||||
class Logger
|
||||
# Device used for logging messages.
|
||||
|
|
Loading…
Reference in a new issue