output port in SSDP logging
1 parent 3848b01 commit f14b1f7afec5506e4925bf797c69277321f61197
@Jeff Rebeiro Jeff Rebeiro authored on 6 Feb 2013
Showing 1 changed file
View
6
ssdp.py
# PCAutoBackup responds to.
msearch_data = self.ParseSSDPDiscovery(datagram)
if msearch_data.get('discovery_type'):
self.logger.debug('Received SSDP M-SEARCH for %s from %s',
msearch_data.get('discovery_type'), address[0])
msearch_data.get('discovery_type'), ':'.join(address))
else:
self.logger.debug('Received SSDP M-SEARCH from %s', address[0])
self.logger.debug('Received SSDP M-SEARCH from %s', ':'.join(address))
 
if msearch_data.get('discovery_type') == 'MediaServer':
self.logger.info('Sending SSDP response to %s', address[0])
self.logger.info('Sending SSDP response to %s', ':'.join(address))
self.SendSSDPResponse(address)
 
def ParseSSDPDiscovery(self, datagram):
parsed_data = {}