diff --git a/README.md b/README.md index eb98f5777059..4a9587c4f900 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) [![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme) [![GoDoc](https://godoc.org/github.com/ipfs/go-log?status.svg)](https://godoc.org/github.com/ipfs/go-log) -[![Build Status](https://travis-ci.org/ipfs/go-log.svg?branch=master)](https://travis-ci.org/ipfs/go-log) +[![CircleCI](https://img.shields.io/circleci/build/github/ipfs/go-log?style=flat-square)](https://circleci.com/gh/ipfs/go-log) diff --git a/log_level_test.go b/log_level_test.go index 25a8e55b1d8e..ee9c2601b77e 100644 --- a/log_level_test.go +++ b/log_level_test.go @@ -37,11 +37,17 @@ func TestLogLevel(t *testing.T) { } }() logger.Debugw("foo") - SetLogLevel(subsystem, "debug") + if err := SetLogLevel(subsystem, "debug"); err != nil { + t.Error(err) + } logger.Debugw("bar") SetAllLoggers(LevelInfo) logger.Debugw("baz") - logger.Sync() - reader.Close() + // ignore the error because + // https://github.com/uber-go/zap/issues/880 + _ = logger.Sync() + if err := reader.Close(); err != nil { + t.Error(err) + } <-done }