update mysql log

This commit is contained in:
zhangdeman committed 2021-03-06 13:50:18 +08:00
1 parent cdf75b507b
commit 93d77d4d38
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -40,7 +40,8 @@ func GetDatabaseClient(conf *DBConfig, logConf *LogConfig) (*gorm.DB, error) {
logConf.ConsoleOutput,
logConf.Encoder,
logConf.SplitConfig,
logConf.TraceFieldName); nil != err {
logConf.TraceFieldName,
logConf.Skip); nil != err {
return nil, CreateDBLogError(err)
}
return instance, nil
+1
View File
@@ -40,6 +40,7 @@ type LogConfig struct {
SplitConfig *logger.RotateLogConfig
ExtractFieldList []string
TraceFieldName string
Skip int
}
const (
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.