refactor: remove / throttle some debug logging

This commit is contained in:
yusing
2025-09-26 21:00:35 +08:00
parent 14e243d245
commit 55c1c918ba
2 changed files with 8 additions and 6 deletions

View File

@@ -2,7 +2,6 @@ package docker
import (
"github.com/puzpuzpuz/xsync/v4"
"github.com/rs/zerolog/log"
)
var idDockerHostMap = xsync.NewMap[string, string](xsync.WithPresize(100))
@@ -12,7 +11,6 @@ func GetDockerHostByContainerID(id string) (string, bool) {
}
func SetDockerHostByContainerID(id, host string) {
log.Debug().Str("id", id).Str("host", host).Int("size", idDockerHostMap.Size()).Msg("setting docker host by container id")
idDockerHostMap.Store(id, host)
}