stuff used to debug a hung mutex() lock

This commit is contained in:
Jeff Carr 2025-01-13 08:11:09 -06:00
parent ce6311893c
commit f4bad31b0b
1 changed files with 2 additions and 0 deletions

View File

@ -37,9 +37,11 @@ func doGitPull() {
func doCheckDirtyAndConfigSave() { func doCheckDirtyAndConfigSave() {
var count int var count int
now := time.Now() now := time.Now()
// log.Info("before findAll()")
all := me.found.SortByFullPath() all := me.found.SortByFullPath()
for all.Scan() { for all.Scan() {
repo := all.Next() repo := all.Next()
// log.Info("before isDirty()")
dirty := repo.IsDirty() dirty := repo.IsDirty()
if repo.CheckDirty() { if repo.CheckDirty() {
count += 1 count += 1