From 6644c96dbffb2a70a0285eea37ff2081f26fb7cf Mon Sep 17 00:00:00 2001 From: Mario Macias Date: Fri, 26 Jan 2024 11:48:07 +0100 Subject: [PATCH] Removing BEYLA_SYSTEM_WIDE advicing from error logs --- pkg/internal/pipe/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/pipe/config.go b/pkg/internal/pipe/config.go index b58183c55..ad5b53c26 100644 --- a/pkg/internal/pipe/config.go +++ b/pkg/internal/pipe/config.go @@ -132,7 +132,7 @@ func (c *Config) validateInstrumentation() error { return ConfigError(fmt.Sprintf("error in services YAML property: %s", err.Error())) } if c.Port.Len() == 0 && !c.Exec.IsSet() && len(c.Discovery.Services) == 0 && !c.Discovery.SystemWide { - return ConfigError("missing BEYLA_EXECUTABLE_NAME, BEYLA_OPEN_PORT or BEYLA_SYSTEM_WIDE property") + return ConfigError("missing BEYLA_EXECUTABLE_NAME or BEYLA_OPEN_PORT property, or a 'discovery' section in the configuration file. Please check the documentation for more information") } if (c.Port.Len() > 0 || c.Exec.IsSet() || len(c.Discovery.Services) > 0) && c.Discovery.SystemWide { return ConfigError("you can't use BEYLA_SYSTEM_WIDE if any of BEYLA_EXECUTABLE_NAME, BEYLA_OPEN_PORT or services (YAML) are set")