Allow specifying the event log host in config.

This commit is contained in:
Sam Edwards 2013-10-08 15:37:18 -06:00
parent b248af111b
commit 1df99a3b8b
1 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,13 @@ class AstronInternalRepository(ConnectionRepository):
self.eventLogId = self.config.GetString('eventlog-id', 'AIR:?')
self.eventSocket = None
eventLogHost = self.config.GetString('eventlog-host', '')
if eventLogHost:
if ':' in eventLogHost:
host, port = eventLogHost.split(':', 1)
self.setEventLogHost(host, int(port))
else:
self.setEventLogHost(eventLogHost)
self.readDCFile(dcFileNames)