Module: Datadog::CI::Contrib::Lograge::Patcher
- Includes:
- Patcher
- Defined in:
- lib/datadog/ci/contrib/lograge/patcher.rb
Overview
Patcher enables patching of lograge module
Class Method Summary collapse
Methods included from Patcher
Class Method Details
.datadog_logs_component ⇒ Object
25 26 27 |
# File 'lib/datadog/ci/contrib/lograge/patcher.rb', line 25 def datadog_logs_component Datadog.send(:components).agentless_logs_submission end |
.patch ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/datadog/ci/contrib/lograge/patcher.rb', line 16 def patch unless datadog_logs_component.enabled Datadog.logger.debug("Datadog logs submission is disabled, skipping lograge patching") return end ::Lograge::LogSubscribers::Base.include(LogSubscriber) end |