From acaa3a7c0dba162ad3d02b69a73e4689f111268a Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 25 Feb 2021 17:39:44 -0800 Subject: [PATCH 1/2] doc(README): use circle-ci badge We don't use travis anymore. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From ffcdbc0494b3743f592f40f809760983ecd18ea2 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 25 Feb 2021 17:43:09 -0800 Subject: [PATCH 2/2] address lint issues --- log_level_test.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 }