Enforce use of any instead of interface{} (#30588)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9aa4818c71
Коммит
166a676fe5
@@ -33,7 +33,7 @@ func (lh *LogrusHook) Levels() []logrus.Level {
|
||||
|
||||
// Fire proxies logrus entries through the plugin API at the appropriate level.
|
||||
func (lh *LogrusHook) Fire(entry *logrus.Entry) error {
|
||||
fields := []interface{}{}
|
||||
fields := []any{}
|
||||
for key, value := range entry.Data {
|
||||
fields = append(fields, key, fmt.Sprintf("%+v", value))
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user