pbx: use connector logger (#25688)

This commit is contained in:
Frédéric Péters 2018-08-14 15:47:28 +02:00
parent 4db89625d3
commit 4723ad8693
1 changed files with 1 additions and 2 deletions

View File

@ -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: