Skip to content

Commit

Permalink
add log output to track what was done
Browse files Browse the repository at this point in the history
  • Loading branch information
memetb committed Oct 23, 2024
1 parent ab431fd commit b8da8da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libvirt/uri/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,14 @@ func (u *ConnectionURI) dialHost(target string, sshcfg *ssh_config.Config, depth
configuredPort, err := sshcfg.Get(target, "Port")
if err == nil && configuredPort != "" {
port = configuredPort
log.Printf("[DEBUG] using ssh port from ssh_config: '%s'", port)
}
}

} else {
log.Printf("[DEBUG] ssh Port is overridden to: '%s'", port)
log.Printf("[DEBUG] using ssh port from querystring: '%s'", port)
}
log.Printf("[DEBUG] port for ssh connection is: '%s'", port)

hostName := target
if sshcfg != nil {
Expand Down

0 comments on commit b8da8da

Please sign in to comment.