From 3807d35b830133bf9908aa22387c92319e6ea4b8 Mon Sep 17 00:00:00 2001 From: Steven Blumenthal Date: Tue, 26 Mar 2024 12:18:26 -0400 Subject: [PATCH] [dca] Do not load language detection patcher if disabled --- 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) }