fix default used_time field

This commit is contained in:
白茶清欢 2021-08-14 19:07:40 +08:00
parent 90bc05e1d0
commit 8cb936a57b

View File

@ -123,7 +123,7 @@ func (c *Client) init() error {
if len(c.instanceTable[flag].LoggerFieldConfig.CommandField) == 0 {
c.instanceTable[flag].LoggerFieldConfig.CommandField = defaultCommandField
}
if len(c.instanceTable[flag].LoggerFieldConfig.UsedTimeField) == 9 {
if len(c.instanceTable[flag].LoggerFieldConfig.UsedTimeField) == 0 {
c.instanceTable[flag].LoggerFieldConfig.UsedTimeField = defaultUsedTimeField
}
if len(c.instanceTable[flag].LoggerFieldConfig.FlagField) == 0 {