summaryrefslogtreecommitdiff
path: root/conn.go
diff options
context:
space:
mode:
authorAxel Wagner <[email protected]>2013-08-23 01:16:12 +0200
committerAxel Wagner <[email protected]>2013-08-23 01:23:29 +0200
commitd9eaa7fc3887a20142a4b27eebe0ee9afbcc1a13 (patch)
tree8b29768f8dec371458ead98b1bd7f0d981adf9bc /conn.go
parenteb7c38953b074e33f86861a3da4c05623cd44fc6 (diff)
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 'conn.go')
-rw-r--r--conn.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/conn.go b/conn.go
index 7f4cf08..41ba5a8 100644
--- a/conn.go
+++ b/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