Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit 968bdc2

Browse files
committed
test suggested changes
1 parent 4ef5aeb commit 968bdc2

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.golangci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ linters:
2727
- gochecknoinits
2828
- scopelint
2929
- dupl
30+
- typecheck
3031

3132
# golangci.com configuration
3233
# https://github.com/golangci/golangci/wiki/Configuration
3334
service:
34-
golangci-lint-version: 1.13.x # use fixed version to not introduce new linters unexpectedly
35+
golangci-lint-version: 1.15.x # use fixed version to not introduce new linters unexpectedly

internal/shared/logutil/log.go

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package logutil
22

3+
import "fmt"
34
type Func func(format string, args ...interface{})
45

56
type Log interface {
6-
Fatalf(format string, args ...interface{})
7-
Errorf(format string, args ...interface{})
8-
Warnf(format string, args ...interface{})
7+
Fatalf(format string, args ...interface{})
8+
Errorf(format string, args ...interface{})
9+
Warnf(format string, args ...interface{})
910
Infof(format string, args ...interface{})
1011
Debugf(key string, format string, args ...interface{})
1112

@@ -15,6 +16,7 @@ type Log interface {
1516

1617
type LogLevel int
1718

19+
// setup levellign
1820
const (
1921
// debug message, write to debug logs only by logutils.Debug
2022
LogLevelDebug LogLevel = 0
@@ -29,5 +31,6 @@ const (
2931

3032
// only not hidden from user errors: whole program failing, usually
3133
// error logging happens in 1-2 places: in the "main" function.
32-
LogLevelError LogLevel = 3
34+
LogLevelError LogLevel = 3
3335
)
36+

0 commit comments

Comments
 (0)