core: log number of loaded converters

This commit is contained in:
c9s 2024-08-16 20:57:28 +08:00
parent 52abb9193d
commit e9bf4babe2
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -35,6 +35,8 @@ func (s *ConverterSetting) InitializeConverter() (Converter, error) {
return converter, err
}
// ConverterManager manages the converters for trade conversion
// It can be used to convert the trade symbol into the target symbol, or convert the price, volume into different units.
type ConverterManager struct {
ConverterSettings []ConverterSetting `json:"converters,omitempty" yaml:"converters,omitempty"`
@ -53,6 +55,8 @@ func (c *ConverterManager) Initialize() error {
}
}
numConverters := len(c.converters)
logrus.Infof("%d converters loaded", numConverters)
return nil
}