Skip to content

Commit

Permalink
[dca] Do not load language detection patcher if disabled (#24116)
Browse files Browse the repository at this point in the history
  • Loading branch information
sblumenthal authored and alexgallotta committed May 9, 2024
1 parent 5a76396 commit 11bc5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cluster-agent/subcommands/start/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 11bc5e1

Please sign in to comment.