def discover(self): logger.debug('Starting netlinks discovery') jobFinished = 0 try: if tcpdbutils.shouldDiscoverTCP(self.Framework) : self.discover_private() else: if logger.isInfoEnabled(): logger.info('No changes in netlinks database since previous job execution') jobFinished = 1 finally: if logger.isInfoEnabled(): logger.info('Netlinks discovery finished') if not jobFinished: #in this case we should clear already executed jobs from cache #to enable this job run once again tcpdbutils.resetShouldDiscoverTCP(self.Framework)
def discover(self): logger.debug('Starting netlinks discovery') jobFinished = 0 try: if tcpdbutils.shouldDiscoverTCP(self.Framework): self.discover_private() else: if logger.isInfoEnabled(): logger.info( 'No changes in netlinks database since previous job execution' ) jobFinished = 1 finally: if logger.isInfoEnabled(): logger.info('Netlinks discovery finished') if not jobFinished: #in this case we should clear already executed jobs from cache #to enable this job run once again tcpdbutils.resetShouldDiscoverTCP(self.Framework)
def info(msg): if logger.isInfoEnabled(): logger.info(msg)