diff options
author | Axel Wagner <mail@merovius.de> | 2013-08-23 01:16:12 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-09-08 16:49:18 +0200 |
commit | 2104b8fcdff4e444cc441f128b7f3abdcf39bbd2 (patch) | |
tree | cedfc72728c811793515b1c4edac2f24d506edd8 /nexgb/conn.go | |
parent | 38b293e74db6631873d5dfd74cf731eb7b76737d (diff) | |
download | haven-2104b8fcdff4e444cc441f128b7f3abdcf39bbd2.tar.gz haven-2104b8fcdff4e444cc441f128b7f3abdcf39bbd2.tar.xz haven-2104b8fcdff4e444cc441f128b7f3abdcf39bbd2.zip |
Export the logger (again)
Just enabling or disabling logging falls short of the power of
interfaces of go. A user is forced to either accept the logging to
stderr in the format defined by xgb or disable logging alltogether. By
exporting the logger, we can actually let the user decide where to log
in what format.
Diffstat (limited to 'nexgb/conn.go')
-rw-r--r-- | nexgb/conn.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nexgb/conn.go b/nexgb/conn.go index 7f4cf08..41ba5a8 100644 --- a/nexgb/conn.go +++ b/nexgb/conn.go @@ -33,8 +33,8 @@ func (c *Conn) connect(display string) error { authName, authData, err := readAuthority(c.host, c.display) noauth := false if err != nil { - logger.Printf("Could not get authority info: %v", err) - logger.Println("Trying connection without authority info...") + Logger.Printf("Could not get authority info: %v", err) + Logger.Println("Trying connection without authority info...") authName = "" authData = []byte{} noauth = true |