From d9eaa7fc3887a20142a4b27eebe0ee9afbcc1a13 Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Fri, 23 Aug 2013 01:16:12 +0200 Subject: 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. --- conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'conn.go') 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 -- cgit v1.2.3