add stacktrace in update peer

This commit is contained in:
Pascal Fischer 2024-10-29 14:54:43 +01:00
parent 3dd6d6a1bd
commit 355681e757

View File

@ -6,6 +6,7 @@ import (
b64 "encoding/base64"
"fmt"
"net"
"runtime/debug"
"slices"
"strings"
"sync"
@ -995,6 +996,8 @@ func (am *DefaultAccountManager) updateAccountPeers(ctx context.Context, account
continue
}
log.Infof("account peers update for peer %s in account %s. Trace: %s", peer.ID, account.Id, debug.Stack())
wg.Add(1)
semaphore <- struct{}{}
go func(p *nbpeer.Peer) {