From 1df99a3b8b0ead076d124369b0fe3bed9af9a1f9 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Tue, 8 Oct 2013 15:37:18 -0600 Subject: [PATCH] Allow specifying the event log host in config. --- direct/src/distributed/AstronInternalRepository.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/direct/src/distributed/AstronInternalRepository.py b/direct/src/distributed/AstronInternalRepository.py index 34861979b4..77ff801903 100644 --- a/direct/src/distributed/AstronInternalRepository.py +++ b/direct/src/distributed/AstronInternalRepository.py @@ -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)