aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/internal/util/tune_logctl.go
blob: 1ab87bed52c573f1c08f56c635c7ff83514dc19f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// Author: arnej

package util

func TuneLogging(serviceName, component, settings string) bool {
	arg := serviceName
	if component != "" {
		arg = serviceName + ":" + component
	}
	_, err := BackTicksIgnoreStderr.Run("vespa-logctl", "-c", arg, settings)
	return err == nil
}