Skip to content

Commit

Permalink
Add better output for node name and nnf node name when not supplied
Browse files Browse the repository at this point in the history
This just makes it clear what is being used for these values when it
falls back on using `hostname`. This change also aligns with what
clientmountd does.
  • Loading branch information
bdevcich committed Jan 19, 2024
1 parent b4c494f commit 0198d5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion daemons/compute/server/servers/server_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ func CreateDefaultServer(opts *ServerOptions) (*defaultServer, error) {
if err != nil {
return nil, err
}

log.Println("Hostname: " + opts.name)
}

if len(opts.host) == 0 && len(opts.port) == 0 {
Expand Down Expand Up @@ -194,7 +196,7 @@ func CreateDefaultServer(opts *ServerOptions) (*defaultServer, error) {
return nil, fmt.Errorf("storage node type '%s' not supported. Must be 'Rabbit'", storageNode.Type)
}

log.Println("Found Storage Node", storageNode.Name)
log.Println("Found Storage Node:", storageNode.Name)
opts.nodeName = storageNode.Name
}

Expand Down

0 comments on commit 0198d5e

Please sign in to comment.