Skip to content

Commit 10609b0

Browse files
author
Dean Karn
authored
fix errors dep + tests (#54)
1 parent 52f7e47 commit 10609b0

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

CHANGELOG.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [8.1.2] - 2023-08-16
10+
### Fixed
11+
- errors dependency which contains fixes for wrapped/wrapping errors.
12+
913
## [8.1.1] - 2023-08-16
1014
### Fixed
1115
- errors.Link output in error function after updating dependency.
@@ -46,8 +50,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4650
- Removed ability to remove individual log levels externally; RemoveHandler+AddHandler can do the same.
4751

4852

49-
[Unreleased]: https://github.com/go-playground/log/compare/v8.1.1...HEAD
50-
[8.1.1]: https://github.com/go-playground/log/compare/v8.1.1...v8.1.1
53+
[Unreleased]: https://github.com/go-playground/log/compare/v8.1.2...HEAD
54+
[8.1.2]: https://github.com/go-playground/log/compare/v8.1.1...v8.1.2
55+
[8.1.1]: https://github.com/go-playground/log/compare/v8.1.0...v8.1.1
5156
[8.1.0]: https://github.com/go-playground/log/compare/v8.0.2...v8.1.0
5257
[8.0.2]: https://github.com/go-playground/log/compare/v8.0.1...v8.0.2
5358
[8.0.1]: https://github.com/go-playground/log/compare/v8.0.0...v8.0.1

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## log
2-
<img align="center" src="https://raw.githubusercontent.com/go-playground/log/master/logo.png">![Project status](https://img.shields.io/badge/version-8.1.1-green.svg)
2+
<img align="center" src="https://raw.githubusercontent.com/go-playground/log/master/logo.png">![Project status](https://img.shields.io/badge/version-8.1.2-green.svg)
33
[![Test](https://github.com/go-playground/log/actions/workflows/go.yml/badge.svg)](https://github.com/go-playground/log/actions/workflows/go.yml)
44
[![Coverage Status](https://coveralls.io/repos/github/go-playground/log/badge.svg?branch=master)](https://coveralls.io/github/go-playground/log?branch=master)
55
[![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/log)](https://goreportcard.com/report/github.com/go-playground/log)

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/go-playground/log/v8
33
go 1.18
44

55
require (
6-
github.com/go-playground/errors/v5 v5.3.2
6+
github.com/go-playground/errors/v5 v5.3.3
77
github.com/go-playground/pkg/v5 v5.21.2
88
golang.org/x/term v0.11.0
99
)

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/go-playground/errors/v5 v5.3.2 h1:B3fsF2CAUrc9XI6L95MtEs20qC5q5tPEFgNBGDwhZMc=
2-
github.com/go-playground/errors/v5 v5.3.2/go.mod h1:LcLhmzQ/RuEntAs9r38NSV+xtbHffhMx/1yuuEroc7M=
1+
github.com/go-playground/errors/v5 v5.3.3 h1:/ojXdkJFmw7CVdGvwQnIUULahAyi89T8PSKgoQDbLeA=
2+
github.com/go-playground/errors/v5 v5.3.3/go.mod h1:LcLhmzQ/RuEntAs9r38NSV+xtbHffhMx/1yuuEroc7M=
33
github.com/go-playground/pkg/v5 v5.21.2 h1:DgVr88oMI3pfMFkEN9E6hp9YGG8NHc+019LRJfnUOfU=
44
github.com/go-playground/pkg/v5 v5.21.2/go.mod h1:UgHNntEQnMJSygw2O2RQ3LAB0tprx81K90c/pOKh7cU=
55
golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=

log_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ func TestWithError(t *testing.T) {
369369
}
370370
buff.Reset()
371371
WithError(errors.Wrap(terr, "wrapped error")).Info()
372-
if !strings.HasSuffix(buff.String(), "log_test.go:371:TestWithError wrapped error: this is an err\n") || !strings.HasPrefix(buff.String(), "INFO source=") {
372+
if !strings.HasSuffix(buff.String(), "log_test.go:371:TestWithError wrapped error\n") || !strings.HasPrefix(buff.String(), "INFO source=") {
373373
t.Errorf("Expected '%s' Got '%s'", "log_test.go:371:TestWithError wrapped error: this is an err\n", buff.String())
374374
}
375375
}
@@ -992,7 +992,7 @@ func TestWrappedError(t *testing.T) {
992992
err := fmt.Errorf("this is an %s", "error")
993993
err = errors.Wrap(err, "prefix").AddTypes("Permanent", "Internal").AddTag("key", "value")
994994
WithError(err).Error("test")
995-
expected := "log_test.go:993:TestWrappedError prefix: this is an error key=value types=Permanent,Internal\n"
995+
expected := "log_test.go:993:TestWrappedError prefix key=value types=Permanent,Internal\n"
996996
if !strings.HasSuffix(buff.String(), expected) {
997997
t.Errorf("got %s Expected %s", buff.String(), expected)
998998
}

0 commit comments

Comments
 (0)