Skip to content

Commit 177417e

Browse files
committed
format
1 parent 110e66b commit 177417e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

pkg/log/log.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ func Init(level, format string) {
105105
}
106106

107107
// New create logger by opts which can custmoized by command arguments.
108-
//
109108
//nolint:revive // Intentionally returning unexported type for internal use
110109
func New(opts *Options) *zapLogger {
111110
if opts == nil {
@@ -297,13 +296,13 @@ func (l *zapLogger) Errorf(format string, v ...interface{}) {
297296
//nolint:govet
298297
func ErrorR(format string, v ...interface{}) error {
299298
std.zapLogger.Sugar().Errorf(format, v...)
300-
return fmt.Errorf(format, v)
299+
return fmt.Errorf(format, v...)
301300
}
302301

303302
//nolint:govet
304303
func (l *zapLogger) ErrorR(format string, v ...interface{}) error {
305304
l.zapLogger.Sugar().Errorf(format, v...)
306-
return fmt.Errorf(format, v)
305+
return fmt.Errorf(format, v...)
307306
}
308307

309308
// Errorw method output error level log.

0 commit comments

Comments
 (0)