Ignore extra calls to #configure
This commit is contained in:
Родитель
34daef720d
Коммит
74dca386b4
|
@ -15,7 +15,13 @@ module LightStep
|
||||||
# Configure the GlobalTracer
|
# Configure the GlobalTracer
|
||||||
# See {LightStep::Tracer#initialize}
|
# See {LightStep::Tracer#initialize}
|
||||||
def configure(**options)
|
def configure(**options)
|
||||||
raise ConfigurationError, 'Already configured' if configured
|
if configured
|
||||||
|
puts "LIGHTSTEP WARNING: Already configured. Stack trace:"
|
||||||
|
puts caller
|
||||||
|
puts
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
self.configured = true
|
self.configured = true
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче