consistent logging
This commit is contained in:
parent
596ad2c8f7
commit
bc5d5b7319
|
@ -1141,14 +1141,14 @@ func (ts *TokenStore) handleTidy(req *logical.Request, data *framework.FieldData
|
||||||
for _, parent := range parentList {
|
for _, parent := range parentList {
|
||||||
children, err := ts.view.List(parentPrefix + parent + "/")
|
children, err := ts.view.List(parentPrefix + parent + "/")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
tidyErrors = multierror.Append(tidyErrors, fmt.Errorf("failed to read child index entry: %v", err))
|
tidyErrors = multierror.Append(tidyErrors, fmt.Errorf("failed to read secondary index entry: %v", err))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, child := range children {
|
for _, child := range children {
|
||||||
countParentList++
|
countParentList++
|
||||||
if countParentList%500 == 0 {
|
if countParentList%500 == 0 {
|
||||||
ts.logger.Debug("token: checking validity of tokens in parent list", "progress", countParentList)
|
ts.logger.Debug("token: checking validity of tokens in secondary index list", "progress", countParentList)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Look up tainted entries so we can be sure that if this isn't
|
// Look up tainted entries so we can be sure that if this isn't
|
||||||
|
|
Loading…
Reference in New Issue