[management ] remove timing logs (#4761)

This commit is contained in:
Pascal Fischer
2025-11-07 20:14:52 +01:00
committed by GitHub
parent dbfc8a52c9
commit 7df49e249d
5 changed files with 0 additions and 65 deletions

View File

@@ -311,10 +311,6 @@ func (s *SqlStore) GetInstallationID() string {
}
func (s *SqlStore) SavePeer(ctx context.Context, accountID string, peer *nbpeer.Peer) error {
start := time.Now()
defer func() {
log.WithContext(ctx).Debugf("SavePeer: took %s", time.Since(start))
}()
// To maintain data integrity, we create a copy of the peer's to prevent unintended updates to other fields.
peerCopy := peer.Copy()
peerCopy.AccountID = accountID
@@ -2156,10 +2152,6 @@ func (s *SqlStore) GetPeerLabelsInAccount(ctx context.Context, lockStrength Lock
}
func (s *SqlStore) GetAccountNetwork(ctx context.Context, lockStrength LockingStrength, accountID string) (*types.Network, error) {
start := time.Now()
defer func() {
log.WithContext(ctx).Debugf("GetAccountNetwork: took %s", time.Since(start))
}()
ctx, cancel := getDebuggingCtx(ctx)
defer cancel()
@@ -2201,11 +2193,6 @@ func (s *SqlStore) GetPeerByPeerPubKey(ctx context.Context, lockStrength Locking
}
func (s *SqlStore) GetAccountSettings(ctx context.Context, lockStrength LockingStrength, accountID string) (*types.Settings, error) {
start := time.Now()
defer func() {
log.WithContext(ctx).Debugf("getAccountSettings: took %s", time.Since(start))
}()
tx := s.db
if lockStrength != LockingStrengthNone {
tx = tx.Clauses(clause.Locking{Strength: string(lockStrength)})