Add new logger type so that it can be shut off.

This commit is contained in:
Andrew Gallant (Ocelot)
2012-05-16 23:57:26 -04:00
parent 424f293671
commit acb84171e5
3 changed files with 100 additions and 17 deletions

View File

@@ -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