Fix tests

This commit is contained in:
Leonid Bugaev
2015-07-10 17:17:16 +05:00
parent 0fe72cc432
commit acaf935cae
+2 -2
View File
@@ -98,7 +98,7 @@ func (c *HTTPClient) Send(data []byte) (response []byte, err error) {
if _, ok := r.(error); !ok {
log.Println("[HTTPClient] Failed to send request: ", string(data))
fmt.Printf("PANIC: pkg: %v %s \n", r, debug.Stack())
log.Println("PANIC: pkg:", r, debug.Stack())
}
}
}()
@@ -107,7 +107,7 @@ func (c *HTTPClient) Send(data []byte) (response []byte, err error) {
if c.conn == nil || !c.isAlive() {
Debug("[HTTPClient] Connecting:", c.baseURL)
if err = c.Connect(); err != nil {
fmt.Printf("[HTTPClient] Connection error: %s\n", r)
log.Println("[HTTPClient] Connection error:", err)
return
}
}