Revision b533e9b2 snf-cyclades-app/synnefo/db/models.py

b/snf-cyclades-app/synnefo/db/models.py
48 48
BACKEND_CLIENTS = {}  # {hash:Backend client}
49 49
BACKEND_HASHES = {}   # {Backend.id:hash}
50 50

  
51
import logging
52
log = logging.getLogger(__name__)
53

  
51 54

  
52 55
def get_client(hash, backend):
53 56
    """Get a cached backend client or create a new one.
......
534 537

  
535 538
        # Release the resources on the deletion of the Network
536 539
        if old_state != 'DELETED' and self.state == 'DELETED':
540
            log.info("Network %r deleted. Releasing link %r mac_prefix %r",
541
                     self.id, self.mac_prefix, self.link)
537 542
            self.deleted = True
538

  
539 543
            if self.mac_prefix:
540 544
                mac_pool = MacPrefixPoolTable.get_pool()
541 545
                mac_pool.put(self.mac_prefix)

Also available in: Unified diff