[#195] Use datapath tag in FrostFS pools logs
All checks were successful
/ DCO (pull_request) Successful in 40s
/ Builds (pull_request) Successful in 1m5s
/ Vulncheck (pull_request) Successful in 1m7s
/ OCI image (pull_request) Successful in 1m24s
/ Lint (pull_request) Successful in 2m14s
/ Tests (pull_request) Successful in 1m4s
/ Integration tests (pull_request) Successful in 5m36s
/ Vulncheck (push) Successful in 45s
/ Builds (push) Successful in 57s
/ OCI image (push) Successful in 1m28s
/ Lint (push) Successful in 2m21s
/ Tests (push) Successful in 57s
/ Integration tests (push) Successful in 5m46s

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
Alexey Vanin 2025-02-11 18:43:31 +03:00
parent 466f3a9531
commit b362793e79

View file

@ -661,8 +661,8 @@ func (a *app) initPools(ctx context.Context) {
errorThreshold = defaultPoolErrorThreshold
}
prm.SetErrorThreshold(errorThreshold)
prm.SetLogger(a.log)
prmTree.SetLogger(a.log)
prm.SetLogger(a.log.With(logs.TagField(logs.TagDatapath)))
prmTree.SetLogger(a.log.With(logs.TagField(logs.TagDatapath)))
prmTree.SetMaxRequestAttempts(a.config().GetInt(cfgTreePoolMaxAttempts))