1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 13:23:07 +01:00

chore: adds warning log if containers are empty using user filter (#3669)

This commit is contained in:
Amir Raminfar
2025-02-24 12:42:30 -08:00
committed by GitHub
parent 15e410a874
commit c1038c0a9e
2 changed files with 5 additions and 1 deletions

View File

@@ -129,6 +129,10 @@ func (s *ContainerStore) ListContainers(labels ContainerLabels) ([]Container, er
return nil, err
}
if len(validContainers) == 0 {
log.Warn().Interface("userLabels", labels).Msg("no containers found with user labels")
}
validIDMap := lo.KeyBy(validContainers, func(item Container) string {
return item.ID
})