update go mod

This commit is contained in:
zhangdeman committed 2022-05-14 13:22:29 +08:00
1 parent 941e7a1871
commit cf395d3dc4
3 files changed
+47 -94

No files matched your search

+3 -4
View File
@@ -10,8 +10,7 @@ package wrapper
import (
"encoding/json"
"git.zhangdeman.cn/zhangdeman/gopkg/logger"
logger2 "git.zhangdeman.cn/zhangdeman/gopkg/logger"
"git.zhangdeman.cn/zhangdeman/logger"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
@@ -27,9 +26,9 @@ func NewGinLogger(loggerLevel zapcore.Level, consoleOutput bool, encoder zapcore
err error
l *zap.Logger
)
logConfList := []logger2.SetLoggerOptionFunc{logger2.WithEncoder(encoder), logger2.WithCaller(), logger2.WithCallerSkip(skip)}
logConfList := []logger.SetLoggerOptionFunc{logger.WithEncoder(encoder), logger.WithCaller(), logger.WithCallerSkip(skip)}
if consoleOutput {
logConfList = append(logConfList, logger2.WithConsoleOutput())
logConfList = append(logConfList, logger.WithConsoleOutput())
}
if l, err = logger.NewLogger(loggerLevel, splitConfig, logConfList...); nil != err {
return nil, err
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.