Skip to content

Commit

Permalink
Removing BEYLA_SYSTEM_WIDE advicing from error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomac committed Jan 26, 2024
1 parent 1b9bbd7 commit 6644c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/internal/pipe/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6644c96

Please sign in to comment.