0001-pbx-use-connector-logger-25688.patch
passerelle/pbx/models.py | ||
---|---|---|
30 | 30 |
assert isinstance(caller, basestring) |
31 | 31 |
assert isinstance(callee, basestring) |
32 | 32 |
assert not data or isinstance(data, dict) |
33 |
logger = logging.getLogger(__name__) |
|
34 | 33 |
caller = unicode(caller) |
35 | 34 |
callee = unicode(callee) |
36 | 35 |
event = unicode(event) |
... | ... | |
44 | 43 |
payload['data'] = data |
45 | 44 |
requests.post(self.welco_url, data=json.dumps(payload), |
46 | 45 |
headers={'content-type': 'application/json'}) |
47 |
logger.info(u'notified welco of event %s from %s to %s', |
|
46 |
self.logger.info(u'notified welco of event %s from %s to %s',
|
|
48 | 47 |
event, caller, callee) |
49 | 48 | |
50 | 49 |
class Meta: |
51 |
- |