Don't reenable the tracer when calling #enabled?
This fixes the tests added in the previous commit.
This commit is contained in:
Родитель
0efc07f96e
Коммит
010fc245ff
|
@ -133,7 +133,8 @@ module LightStep
|
||||||
|
|
||||||
# @return true if the tracer is enabled
|
# @return true if the tracer is enabled
|
||||||
def enabled?
|
def enabled?
|
||||||
@enabled ||= true
|
return @enabled if defined?(@enabled)
|
||||||
|
@enabled = true
|
||||||
end
|
end
|
||||||
|
|
||||||
# Enables the tracer
|
# Enables the tracer
|
||||||
|
|
Загрузка…
Ссылка в новой задаче