diff --git a/README.md b/README.md index eb98f57..4a9587c 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 25a8e55..ee9c260 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 }