update mysql log
This commit is contained in:
1 parent
cdf75b507b
commit
93d77d4d38
2 files changed
+3
-1
No files matched your search
@@ -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 (
|
||||
|
||||