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 Mar 26, 2024
1 parent 6dd02e4 commit eef61a7
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 eef61a7

Please sign in to comment.