Log IRC connection errors

This commit is contained in:
Ken-Håvard Lieng 2016-01-14 04:28:42 +01:00
parent f6d13675c3
commit 2bffef825d
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import (
"bufio" "bufio"
"crypto/tls" "crypto/tls"
"fmt" "fmt"
"log"
"net" "net"
"strings" "strings"
"time" "time"
@ -99,6 +100,7 @@ func (c *Client) tryConnect() {
return return
} }
log.Println(err)
time.Sleep(c.backoff.Duration()) time.Sleep(c.backoff.Duration())
} }
} }