wip: add debug

This commit is contained in:
Laurence 2024-04-23 10:47:14 +01:00
parent 3231a1723d
commit 128560c697
No known key found for this signature in database
GPG key ID: B053BEE3478E8FEF

View file

@ -453,6 +453,7 @@ func (d *DockerSource) EvalContainer(container dockerTypes.Container) (*Containe
if v, ok := parsedLabels["enable"]; ok && strings.ToLower(v.(string)) == "true" {
d.logger.Debugf("container labels +%v", parsedLabels)
if labels, ok := parsedLabels["labels"]; ok {
d.logger.Debugf("container labels %+v", labels)
if labelsMap, ok := labels.(map[string]string); ok {
return &ContainerConfig{ID: container.ID, Name: container.Names[0], Labels: labelsMap, Tty: d.getContainerTTY(container.ID)}, true
}