remove log from store

This commit is contained in:
Pascal Fischer
2025-03-14 21:33:41 +01:00
parent 1a87f6e05e
commit fe16a162e4

View File

@@ -2185,7 +2185,7 @@ func (s *SqlStore) GetPeerByIP(ctx context.Context, lockStrength LockingStrength
result := s.db.Clauses(clause.Locking{Strength: string(lockStrength)}).
First(&peer, "account_id = ? AND ip = ?", accountID, jsonValue)
if result.Error != nil {
log.WithContext(ctx).Errorf("failed to get peer from the store: %s", result.Error)
// no logging here
return nil, status.Errorf(status.Internal, "failed to get peer from store")
}