logging of report server connection attempts
This commit is contained in:
parent
10cec77baa
commit
e3070c5bb7
|
@ -1025,10 +1025,11 @@ class reportFactory(Factory):
|
||||||
self._logger = logger
|
self._logger = logger
|
||||||
|
|
||||||
def buildProtocol(self, addr):
|
def buildProtocol(self, addr):
|
||||||
print(self._config['REPORTS']['REPORT_CLIENTS'])
|
|
||||||
if (addr.host) in self._config['REPORTS']['REPORT_CLIENTS'] or '*' in self._config['REPORTS']['REPORT_CLIENTS']:
|
if (addr.host) in self._config['REPORTS']['REPORT_CLIENTS'] or '*' in self._config['REPORTS']['REPORT_CLIENTS']:
|
||||||
|
self._logger.debug('Permitting report server connection attempt from: %s:%s', addr.host, addr.port)
|
||||||
return report(self)
|
return report(self)
|
||||||
else:
|
else:
|
||||||
|
self._logger.error('Invalid report server connection attempt from: %s:%s', addr.host, addr.port)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def send_clients(self, _message):
|
def send_clients(self, _message):
|
||||||
|
|
Loading…
Reference in New Issue