pbx: use connector logger (#25688)
This commit is contained in:
parent
4db89625d3
commit
4723ad8693
|
@ -30,7 +30,6 @@ class PBXMixin(BaseResource):
|
|||
assert isinstance(caller, basestring)
|
||||
assert isinstance(callee, basestring)
|
||||
assert not data or isinstance(data, dict)
|
||||
logger = logging.getLogger(__name__)
|
||||
caller = unicode(caller)
|
||||
callee = unicode(callee)
|
||||
event = unicode(event)
|
||||
|
@ -44,7 +43,7 @@ class PBXMixin(BaseResource):
|
|||
payload['data'] = data
|
||||
requests.post(self.welco_url, data=json.dumps(payload),
|
||||
headers={'content-type': 'application/json'})
|
||||
logger.info(u'notified welco of event %s from %s to %s',
|
||||
self.logger.info(u'notified welco of event %s from %s to %s',
|
||||
event, caller, callee)
|
||||
|
||||
class Meta:
|
||||
|
|
Loading…
Reference in New Issue