update mysql log
This commit is contained in:
parent
cdf75b507b
commit
93d77d4d38
@ -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
|
||||
|
@ -40,6 +40,7 @@ type LogConfig struct {
|
||||
SplitConfig *logger.RotateLogConfig
|
||||
ExtractFieldList []string
|
||||
TraceFieldName string
|
||||
Skip int
|
||||
}
|
||||
|
||||
const (
|
||||
|
Loading…
Reference in New Issue
Block a user