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.ConsoleOutput,
|
||||||
logConf.Encoder,
|
logConf.Encoder,
|
||||||
logConf.SplitConfig,
|
logConf.SplitConfig,
|
||||||
logConf.TraceFieldName); nil != err {
|
logConf.TraceFieldName,
|
||||||
|
logConf.Skip); nil != err {
|
||||||
return nil, CreateDBLogError(err)
|
return nil, CreateDBLogError(err)
|
||||||
}
|
}
|
||||||
return instance, nil
|
return instance, nil
|
||||||
|
@ -40,6 +40,7 @@ type LogConfig struct {
|
|||||||
SplitConfig *logger.RotateLogConfig
|
SplitConfig *logger.RotateLogConfig
|
||||||
ExtractFieldList []string
|
ExtractFieldList []string
|
||||||
TraceFieldName string
|
TraceFieldName string
|
||||||
|
Skip int
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Loading…
Reference in New Issue
Block a user