comparison python/ppci/common.py @ 334:6f4753202b9a

Added more recipes
author Windel Bouwman
date Thu, 13 Feb 2014 22:02:08 +0100
parents 2c9768114877
children b8ad45b3a573
comparison
equal deleted inserted replaced
333:dcae6574c974 334:6f4753202b9a
56 self.diags = [] 56 self.diags = []
57 self.sources = {} 57 self.sources = {}
58 self.logger = logging.getLogger('diagnostics') 58 self.logger = logging.getLogger('diagnostics')
59 59
60 def addSource(self, name, src): 60 def addSource(self, name, src):
61 self.logger.info('Adding source {}'.format(name)) 61 self.logger.debug('Adding source {}'.format(name))
62 self.sources[name] = src 62 self.sources[name] = src
63 63
64 def addDiag(self, d): 64 def addDiag(self, d):
65 #self.logger.warning(str(d.msg)) 65 #self.logger.warning(str(d.msg))
66 self.diags.append(d) 66 self.diags.append(d)