diff light9/collector/collector.py @ 2252:2b8a2a25b154

logging
author drewp@bigasterisk.com
date Sat, 27 May 2023 17:56:28 -0700
parents fe3543310d34
children ccd04278e357
line wrap: on
line diff
--- a/light9/collector/collector.py	Sat May 27 15:45:44 2023 -0700
+++ b/light9/collector/collector.py	Sat May 27 17:56:28 2023 -0700
@@ -29,10 +29,10 @@
     ret = cast(Dict[Tuple[DeviceUri, OutputAttr], Tuple[OutputUri, DmxMessageIndex]], {})
 
     for dc in graph.subjects(RDF.type, L9['DeviceClass']):
-        log.info('mapping devices of class %s', dc)
+        log.info('  mapping devices of class %s', dc)
         for dev in graph.subjects(RDF.type, dc):
             dev = cast(DeviceUri, dev)
-            log.info('  💡 mapping device %s', dev)
+            log.info('    💡 mapping device %s', dev)
             universe = typedValue(OutputUri, graph, dev, L9['dmxUniverse'])
             if universe not in outputs:
                 raise ValueError(f'{dev=} is configured to be in {universe=}, but we have no Output for that universe')
@@ -73,6 +73,7 @@
         self.stickyAttrs: Dict[Tuple[DeviceUri, DeviceAttr], VTUnion] = {}
 
     def _compile(self):
+        log.info('Collector._compile:')
         self._outputByUri = self._compileOutputByUri()
         self._outputMap = _outputMap(self.graph, set(self._outputByUri.keys()))