all: imp stats log msg

This commit is contained in:
Stanislav Chzhen 2024-10-14 14:11:13 +03:00
parent 73ff401b0f
commit 9558de14ef
2 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,7 @@ NOTE: Add new changes BELOW THIS COMMENT.
### Fixed
- Repetitive statistics log messages ([#7338]).
- Custom client cache ([#7250]).
- Missing runtime clients with information from the system hosts file on first
AdGuard Home start ([#7315]).
@ -38,6 +39,7 @@ NOTE: Add new changes BELOW THIS COMMENT.
[#6818]: https://github.com/AdguardTeam/AdGuardHome/issues/6818
[#7250]: https://github.com/AdguardTeam/AdGuardHome/issues/7250
[#7315]: https://github.com/AdguardTeam/AdGuardHome/issues/7315
[#7338]: https://github.com/AdguardTeam/AdGuardHome/issues/7338
<!--
NOTE: Add new changes ABOVE THIS COMMENT.

View File

@ -467,7 +467,7 @@ func (s *StatsCtx) flushDB(id, limit uint32, ptr *unit) (cont bool, sleepFor tim
if delErr != nil {
// TODO(e.burkov): Improve the algorithm of deleting the oldest bucket
// to avoid the error.
lvl := slog.LevelWarn
lvl := slog.LevelDebug
if !errors.Is(delErr, bbolt.ErrBucketNotFound) {
isCommitable = false
lvl = slog.LevelError