Skip to content

Commit 79ac94d

Browse files
committed
format
1 parent 177417e commit 79ac94d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

pkg/log/log.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ func Init(level, format string) {
104104
std = New(options)
105105
}
106106

107-
// New create logger by opts which can custmoized by command arguments.
108107
//nolint:revive // Intentionally returning unexported type for internal use
109108
func New(opts *Options) *zapLogger {
110109
if opts == nil {
@@ -293,13 +292,11 @@ func (l *zapLogger) Errorf(format string, v ...interface{}) {
293292
l.zapLogger.Sugar().Errorf(format, v...)
294293
}
295294

296-
//nolint:govet
297295
func ErrorR(format string, v ...interface{}) error {
298296
std.zapLogger.Sugar().Errorf(format, v...)
299297
return fmt.Errorf(format, v...)
300298
}
301299

302-
//nolint:govet
303300
func (l *zapLogger) ErrorR(format string, v ...interface{}) error {
304301
l.zapLogger.Sugar().Errorf(format, v...)
305302
return fmt.Errorf(format, v...)

0 commit comments

Comments
 (0)