diff options
Diffstat (limited to 'ssh/test')
| -rw-r--r-- | ssh/test/test_unix_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ssh/test/test_unix_test.go b/ssh/test/test_unix_test.go index 63d290f..f71beb6 100644 --- a/ssh/test/test_unix_test.go +++ b/ssh/test/test_unix_test.go @@ -18,6 +18,7 @@ import ( "errors" "io" "io/ioutil" + "log" "net" "os" "os/exec" @@ -79,6 +80,7 @@ func username() string { } else { // user.Current() currently requires cgo. If an error is // returned attempt to get the username from the environment. + log.Printf("user.Current: %v; falling back on $USER", err) username = os.Getenv("USER") } if username == "" { |
