Skip to content

Commit 50e302f

Browse files
committed
Add logging around aquiring the entry group lock
We still see what we expect to be some deadlocks. So just to gather more info we extend logging.
1 parent 9e296eb commit 50e302f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

entry_groups.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ func (e *entryGroups) get(containerID string) (*avahi.EntryGroup, func(), error)
3939
}
4040
}
4141

42+
log.Logf(log.PriDebug, "about to get lock for container ID: %s", containerID)
4243
e.mutex.Lock()
44+
log.Logf(log.PriDebug, "got lock for container ID: %s", containerID)
4345

4446
if _, ok := e.groups[containerID]; !ok {
4547
entryGroup, err := e.avahiServer.EntryGroupNew()

0 commit comments

Comments
 (0)