chore: remove verbatim cache logging
This commit is contained in:
parent
978d2839de
commit
b13e2baff6
1 changed files with 1 additions and 10 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue