debug
This commit is contained in:
parent
73ef4e6adc
commit
bf9e4a90d2
2 changed files with 4 additions and 1 deletions
|
@ -82,8 +82,10 @@ class Gateway(object):
|
||||||
def discover_services(self):
|
def discover_services(self):
|
||||||
log.info("querying %s", self.location)
|
log.info("querying %s", self.location)
|
||||||
response = yield treq.get(self.location)
|
response = yield treq.get(self.location)
|
||||||
response_xml = yield response.text()
|
response_xml = yield response.content()
|
||||||
self._device = RootDevice(response_xml)
|
self._device = RootDevice(response_xml)
|
||||||
|
if not self._device.devices or not self._device.services:
|
||||||
|
log.error("failed to parse device: \n%s", response_xml)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def services(self):
|
def services(self):
|
||||||
|
|
|
@ -155,6 +155,7 @@ class SCPDCommandRunner(object):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _soap_function_info(action_dict):
|
def _soap_function_info(action_dict):
|
||||||
if not action_dict.get('argumentList'):
|
if not action_dict.get('argumentList'):
|
||||||
|
log.warning("don't know how to handle argument list: %s", action_dict)
|
||||||
return (
|
return (
|
||||||
action_dict['name'],
|
action_dict['name'],
|
||||||
[],
|
[],
|
||||||
|
|
Loading…
Reference in a new issue