Commit 08a24643 authored by David Venhoek's avatar David Venhoek
Browse files

Fixed bug where a nil was passed as logger to httptransport, causing crashes on mac.

parent 44222d43
......@@ -43,6 +43,8 @@ func init() {
func NewHTTPTransport(serverURL string) *HTTPTransport {
if Logger.IsLevelEnabled(logrus.TraceLevel) {
transportlogger = log.New(Logger.WriterLevel(logrus.TraceLevel), "transport: ", 0)
} else {
transportlogger = log.New(ioutil.Discard, "", 0)
}
url := serverURL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment