зеркало из https://github.com/github/ruby.git
[ruby/logger] Prefer require_relative, it's a little bit faster.
https://github.com/ruby/logger/commit/1e2aab4bea
This commit is contained in:
Родитель
7ef0856287
Коммит
3fdb963827
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче