Skip to content

Commit 52f7e47

Browse files
author
Dean Karn
authored
update error dep (#53)
1 parent d3a738a commit 52f7e47

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

CHANGELOG.md

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

77
## [Unreleased]
88

9-
## [8.1.0] - 2023-08-16
9+
## [8.1.1] - 2023-08-16
10+
### Fixed
11+
- errors.Link output in error function after updating dependency.
12+
13+
## [8.1.0] - 2023-08-15
1014
### Added
1115
- log.G as shorthand for adding a set of Grouped fields. This ability has always been present but is now fully supported in the default logger and with helper function for ease of use.
1216
- slog support added in Go 1.21+ both to use as an slog.Handler or redirect.
@@ -42,7 +46,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4246
- Removed ability to remove individual log levels externally; RemoveHandler+AddHandler can do the same.
4347

4448

45-
[Unreleased]: https://github.com/go-playground/log/compare/v8.1.0...HEAD
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
4651
[8.1.0]: https://github.com/go-playground/log/compare/v8.0.2...v8.1.0
4752
[8.0.2]: https://github.com/go-playground/log/compare/v8.0.1...v8.0.2
4853
[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.0-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.1-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)

errors.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package log
22

33
import (
44
"fmt"
5+
"github.com/go-playground/errors/v5"
56
"strconv"
67
"strings"
78

8-
"github.com/go-playground/errors/v5"
99
runtimeext "github.com/go-playground/pkg/v5/runtime"
1010
)
1111

@@ -102,11 +102,12 @@ func formatLink(l *errors.Link, b []byte) []byte {
102102
b = extractSource(b, l.Source)
103103
if l.Prefix != "" {
104104
b = append(b, l.Prefix...)
105-
106-
if l.Err != nil {
105+
}
106+
if l.Err != nil {
107+
if l.Prefix != "" {
107108
b = append(b, ": "...)
108-
b = append(b, l.Err.Error()...)
109109
}
110+
b = append(b, l.Err.Error()...)
110111
}
111112
return b
112113
}

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.1
6+
github.com/go-playground/errors/v5 v5.3.2
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.1 h1:J2qU+9Whg863g3SATXKSJyFA91Zz85pYD3+obr5Oodk=
2-
github.com/go-playground/errors/v5 v5.3.1/go.mod h1:LcLhmzQ/RuEntAs9r38NSV+xtbHffhMx/1yuuEroc7M=
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=
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=

0 commit comments

Comments
 (0)