Project

General

Profile

Revision 727

Don't remove lease RRs is the debug level is VDEBUG; that information is useful for debugging.

View differences:

accounting.py
20 20

  
21 21
import os
22 22
import os.path
23
import logging
23 24
from haizea.common.utils import pickle, get_clock
25
from haizea.common.constants import LOGLEVEL_VDEBUG
24 26
from errno import EEXIST
25 27

  
26 28
class AccountingData(object):
......
323 325
        """        
324 326
        for probe in self.__probes:
325 327
            probe.at_lease_done(lease)
326
        lease.clear_rrs()
328
        if logging.getLogger().getEffectiveLevel() != LOGLEVEL_VDEBUG:
329
            lease.clear_rrs()
327 330
                
328 331
                
329 332
    def __normalize_times(self, counter):

Also available in: Unified diff