aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/internal/util/tune_logctl.go
blob: b66c14c2d658e7273d0a0d1a11df126bd0f69176 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright Vespa.ai. 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
}