diff options
author | Peter Harris <pharris@opentext.com> | 2015-01-28 11:53:39 -0500 |
---|---|---|
committer | Peter Harris <pharris@opentext.com> | 2015-01-28 11:53:39 -0500 |
commit | b605bfc8bf60bf55ab8ef761b1459e027f26ca0b (patch) | |
tree | c5726c01b6eeab9f866d73d5175ccabf0b2fdc66 | |
parent | 82418619d54d3382ee331b91e136bdc3fbe7b2e2 (diff) |
Silence xgb Xauthority warnings
-rw-r--r-- | config.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3,6 +3,8 @@ package main import ( "bufio" "fmt" + "io/ioutil" + "log" "os" "path/filepath" "regexp" @@ -14,6 +16,10 @@ import ( ) func createConfig(outdir string) error { + // xgb logs when it cannot find Xauthority, which is + // every time when running into a remote Exceed + xgb.Logger = log.New(ioutil.Discard, "", 0) + c, err := xgb.NewConn() if err != nil { return err |