fix(comment): Add a few missing comments on func
This commit is contained in:
@ -22,6 +22,7 @@ func (e ProviderName) IsValid() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// String will transform a providerName into a string.
|
||||
func (e ProviderName) String() string {
|
||||
return string(e)
|
||||
}
|
||||
|
@ -103,6 +103,7 @@ func InitFromCustomConfig(c *ConfigStruct) (*logrus.Entry, error) {
|
||||
return c.applyExtraFields(logrus.NewEntry(log)), nil
|
||||
}
|
||||
|
||||
// applyExtraFileds will take a logrus.Entry and will add fields that are in the configuration.
|
||||
func (c *ConfigStruct) applyExtraFields(l *logrus.Entry) *logrus.Entry {
|
||||
return l.WithFields(c.ExtrasFields)
|
||||
}
|
||||
|
Reference in New Issue
Block a user