Skip to content

Commit

Permalink
Include GOOS and GOARCH in system info string + fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Oct 2, 2023
1 parent 60ba18c commit bed0f2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/daemon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ func loadConfig(cfg *Config) error {

configBytes, err := os.ReadFile(cfg.ConfigPath)
if err != nil {
return fmt.Errorf("failde reading configuration file: %w", err)
return fmt.Errorf("failed reading configuration file: %w", err)
}

if err := yaml.Unmarshal(configBytes, cfg); err != nil {
Expand Down
3 changes: 1 addition & 2 deletions version.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ func VersionString() string {
}

func SystemInfoString() string {
// TODO: add operating system?
return fmt.Sprintf("%s; Go %s", VersionString(), runtime.Version())
return fmt.Sprintf("%s; Go %s (%s %s)", VersionString(), runtime.Version(), runtime.GOOS, runtime.GOARCH)
}

func UserAgent() string {
Expand Down

0 comments on commit bed0f2a

Please sign in to comment.