Mercurial > code > home > repos > light9
comparison bin/collector @ 1799:0bb7b9df12e5
collector warnings and errors. the reactor.crash isn't working.
Ignore-this: b7d4a6c08f04c924ffba6112483f9c19
author | drewp@bigasterisk.com |
---|---|
date | Fri, 08 Jun 2018 03:35:30 +0000 |
parents | 283ce478e60f |
children | 6b101309fb12 |
comparison
equal
deleted
inserted
replaced
1798:283ce478e60f | 1799:0bb7b9df12e5 |
---|---|
144 outputs = [ | 144 outputs = [ |
145 # EnttecDmx(L9['output/dmx0/'], '/dev/dmx3', 80), | 145 # EnttecDmx(L9['output/dmx0/'], '/dev/dmx3', 80), |
146 Udmx(L9['output/dmxA/'], bus=4, numChannels=80), | 146 Udmx(L9['output/dmxA/'], bus=4, numChannels=80), |
147 Udmx(L9['output/dmxB/'], bus=5, numChannels=510), | 147 Udmx(L9['output/dmxB/'], bus=5, numChannels=510), |
148 ] | 148 ] |
149 except Exception as e: | 149 except Exception: |
150 log.error("setting up outputs: %r", e) | 150 log.error("setting up outputs:") |
151 traceback.print_exc() | 151 traceback.print_exc() |
152 raise | 152 raise |
153 listeners = WebListeners() | 153 listeners = WebListeners() |
154 c = Collector(graph, outputs, listeners) | 154 c = Collector(graph, outputs, listeners) |
155 | 155 |
190 | 190 |
191 logging.getLogger('colormath').setLevel(logging.INFO) | 191 logging.getLogger('colormath').setLevel(logging.INFO) |
192 | 192 |
193 graph = SyncedGraph(networking.rdfdb.url, "collector") | 193 graph = SyncedGraph(networking.rdfdb.url, "collector") |
194 | 194 |
195 graph.initiallySynced.addCallback(lambda _: launch(graph, options.loadtest)).addErrback(log.error) | 195 graph.initiallySynced.addCallback(lambda _: launch(graph, options.loadtest)).addErrback(lambda e: reactor.crash()) |
196 reactor.run() | 196 reactor.run() |
197 | 197 |
198 if __name__ == '__main__': | 198 if __name__ == '__main__': |
199 main() | 199 main() |