# HG changeset patch # User Drew Perttula # Date 1559351518 0 # Node ID 7fe81130b735196cd3f6d346f29f33a088b6bef2 # Parent 84b5aab10e470fb2ca5df107bd3df66de1477551 move web logging to https://github.com/visionmedia/debug/ so it can have channels that can be turned off Ignore-this: bc5147fdfe1e4712d671cfc36698a6f diff -r 84b5aab10e47 -r 7fe81130b735 light9/web/edit-choice.coffee --- a/light9/web/edit-choice.coffee Fri May 31 22:41:29 2019 +0000 +++ b/light9/web/edit-choice.coffee Sat Jun 01 01:11:58 2019 +0000 @@ -1,3 +1,4 @@ +log = debug('editchoice') RDFS = 'http://www.w3.org/2000/01/rdf-schema#' @@ -37,7 +38,7 @@ try onDrop(uri, pos) catch e - console.log(e) + log(e) unhighlight() diff -r 84b5aab10e47 -r 7fe81130b735 light9/web/graph.coffee --- a/light9/web/graph.coffee Fri May 31 22:41:29 2019 +0000 +++ b/light9/web/graph.coffee Sat Jun 01 01:11:58 2019 +0000 @@ -1,4 +1,4 @@ -log = console.log +log = debug('graph') # Patch is {addQuads: , delQuads: } # are made with Quad(s,p,o,g) @@ -54,7 +54,7 @@ # patterns). Top node is not a handler. @handlers = new Handler(null) @handlerStack = [@handlers] # currently running - + runHandler: (func, label) -> # what if we have this func already? duplicate is safe? @@ -67,9 +67,9 @@ # ohno, something depends on some handlers getting run twice :( if matchingLabel < 2 tailChildren.push(h) - console.time("handler #{label}") + #console.time("handler #{label}") @_rerunHandler(h, null) - console.timeEnd("handler #{label}") + #console.timeEnd("handler #{label}") #@_logHandlerTree() _rerunHandler: (handler, patch) -> diff -r 84b5aab10e47 -r 7fe81130b735 light9/web/lib/bower.json --- a/light9/web/lib/bower.json Fri May 31 22:41:29 2019 +0000 +++ b/light9/web/lib/bower.json Sat Jun 01 01:11:58 2019 +0000 @@ -30,7 +30,8 @@ "iron-flex-layout": "PolymerElements/iron-flex-layout#^2.0.3", "iron-component-page": "PolymerElements/iron-component-page#^3.0.1", "paper-header-panel": "PolymerElements/paper-header-panel#^2.1.0", - "iron-overlay-behavior": "PolymerElements/iron-overlay-behavior#^2.3.4" + "iron-overlay-behavior": "PolymerElements/iron-overlay-behavior#^2.3.4", + "debug": "https://github.com/visionmedia/debug/archive/master.zip" }, "resolutions": { "webcomponentsjs": "^v1.1.0", diff -r 84b5aab10e47 -r 7fe81130b735 light9/web/light9-music.coffee --- a/light9/web/light9-music.coffee Fri May 31 22:41:29 2019 +0000 +++ b/light9/web/light9-music.coffee Sat Jun 01 01:11:58 2019 +0000 @@ -1,4 +1,5 @@ -log = console.log +log = debug('music') +debug.enable('music') # port of light9/curvecalc/musicaccess.py coffeeElementSetup(class Music extends Polymer.Element diff -r 84b5aab10e47 -r 7fe81130b735 light9/web/live/elements.html --- a/light9/web/live/elements.html Fri May 31 22:41:29 2019 +0000 +++ b/light9/web/live/elements.html Sat Jun 01 01:11:58 2019 +0000 @@ -1,3 +1,7 @@ + + @@ -262,6 +266,7 @@ +