chore: remove verbatim cache logging

This commit is contained in:
andig 2025-10-07 15:19:37 +02:00
parent 978d2839de
commit b13e2baff6

View file

@ -1,7 +1,6 @@
package util
import (
"fmt"
"maps"
"slices"
"strconv"
@ -15,7 +14,7 @@ import (
type Param struct {
Loadpoint *int
Key string
Val interface{}
Val any
}
// UniqueID returns unique identifier for parameter Loadpoint/Key combination
@ -56,20 +55,12 @@ func NewParamCache() *ParamCache {
// Run adds input channel's values to cache
func (c *ParamCache) Run(in <-chan Param) {
log := NewLogger("cache")
for p := range in {
if flushC, ok := p.Val.(flush); ok {
close(flushC)
continue
}
key := p.Key
if p.Loadpoint != nil {
key = fmt.Sprintf("lp-%d/%s", *p.Loadpoint+1, key)
}
log.TRACE.Printf("%s: %v", key, p.Val)
c.Add(p.UniqueID(), p)
}
}