fix: warning output when running with --test (#10329)
This commit is contained in:
parent
58f6a618af
commit
70c06aca16
|
|
@ -262,7 +262,7 @@ func runAgent(ctx context.Context,
|
||||||
log.Printf("I! Loaded aggregators: %s", strings.Join(c.AggregatorNames(), " "))
|
log.Printf("I! Loaded aggregators: %s", strings.Join(c.AggregatorNames(), " "))
|
||||||
log.Printf("I! Loaded processors: %s", strings.Join(c.ProcessorNames(), " "))
|
log.Printf("I! Loaded processors: %s", strings.Join(c.ProcessorNames(), " "))
|
||||||
if !*fRunOnce && (*fTest || *fTestWait != 0) {
|
if !*fRunOnce && (*fTest || *fTestWait != 0) {
|
||||||
log.Print(color.RedString("W! Outputs are not used in testing mode!"))
|
log.Print("W! " + color.RedString("Outputs are not used in testing mode!"))
|
||||||
} else {
|
} else {
|
||||||
log.Printf("I! Loaded outputs: %s", strings.Join(c.OutputNames(), " "))
|
log.Printf("I! Loaded outputs: %s", strings.Join(c.OutputNames(), " "))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue