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 misteriaud committed Apr 2, 2024
1 parent b637db3 commit d11265a
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 d11265a

Please sign in to comment.