Skip to content

Commit

Permalink
Merge pull request #106 from ipfs/doc/readme-circleci
Browse files Browse the repository at this point in the history
doc(README): use circle-ci badge
  • Loading branch information
Stebalien authored Feb 26, 2021
2 parents d21354f + ffcdbc0 commit 02dd62c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<!---[![Coverage Status](https://coveralls.io/repos/github/ipfs/go-log/badge.svg?branch=master)](https://coveralls.io/github/ipfs/go-log?branch=master)--->

Expand Down
12 changes: 9 additions & 3 deletions log_level_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 02dd62c

Please sign in to comment.