From eef61a70604308c373b24367bfd44cbb9d3424f7 Mon Sep 17 00:00:00 2001 From: Steven Blumenthal Date: Tue, 26 Mar 2024 15:58:22 -0400 Subject: [PATCH] [dca] Do not load language detection patcher if disabled (#24116) --- cmd/cluster-agent/subcommands/start/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cluster-agent/subcommands/start/command.go b/cmd/cluster-agent/subcommands/start/command.go index eac57acf33b00..8132cbee8a3f3 100644 --- a/cmd/cluster-agent/subcommands/start/command.go +++ b/cmd/cluster-agent/subcommands/start/command.go @@ -390,7 +390,7 @@ func start(log log.Component, }() } - if config.GetBool("cluster_agent.language_detection.patcher.enabled") { + if config.GetBool("language_detection.enabled") && config.GetBool("cluster_agent.language_detection.patcher.enabled") { if err = languagedetection.Start(mainCtx, wmeta, log); err != nil { log.Errorf("Cannot start language detection patcher: %v", err) }