summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Harris <pharris@opentext.com>2015-01-28 11:53:39 -0500
committerPeter Harris <pharris@opentext.com>2015-01-28 11:53:39 -0500
commitb605bfc8bf60bf55ab8ef761b1459e027f26ca0b (patch)
treec5726c01b6eeab9f866d73d5175ccabf0b2fdc66
parent82418619d54d3382ee331b91e136bdc3fbe7b2e2 (diff)
Silence xgb Xauthority warnings
-rw-r--r--config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.go b/config.go
index 8e6cbca..0a6d9f1 100644
--- a/config.go
+++ b/config.go
@@ -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