changeset 2252:2b8a2a25b154

logging
author drewp@bigasterisk.com
date Sat, 27 May 2023 17:56:28 -0700
parents abf812ca5eba
children 7ca29efbdca3
files light9/collector/collector.py light9/live/Light9AttrControl.ts light9/rdfdb/service.py
diffstat 3 files changed, 5 insertions(+), 4 deletions(-) [+]
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()))
 
--- a/light9/live/Light9AttrControl.ts	Sat May 27 15:45:44 2023 -0700
+++ b/light9/live/Light9AttrControl.ts	Sat May 27 17:56:28 2023 -0700
@@ -137,7 +137,7 @@
       // not sure what this is, but it seems to be followed by good events
       return;
     }
-    log(ev.type, ev.detail.value);
+    // log(ev.type, ev.detail.value);
     this.value = ev.detail.value;
     // this.graphToControls.controlChanged(this.device, this.deviceAttrRow.uri, ev.detail.value);
   }
--- a/light9/rdfdb/service.py	Sat May 27 15:45:44 2023 -0700
+++ b/light9/rdfdb/service.py	Sat May 27 17:56:28 2023 -0700
@@ -11,7 +11,7 @@
 logging.getLogger('rdfdb').setLevel(logging.INFO)
 logging.getLogger('rdfdb.file').setLevel(logging.INFO)
 logging.getLogger('rdfdb.graph').setLevel(logging.INFO)
-logging.getLogger('rdfdb.net').setLevel(logging.DEBUG)
+logging.getLogger('rdfdb.net').setLevel(logging.INFO)
 rdfRoot = Path(os.environ['LIGHT9_SHOW'].rstrip('/') + '/')
 showUri = URIRef(showconfig.showUri() + '/')