# HG changeset patch # User Drew Perttula # Date 2019-06-01 01:11:58 # 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 --git a/light9/web/edit-choice.coffee b/light9/web/edit-choice.coffee --- a/light9/web/edit-choice.coffee +++ b/light9/web/edit-choice.coffee @@ -1,3 +1,4 @@ +log = debug('editchoice') RDFS = 'http://www.w3.org/2000/01/rdf-schema#' @@ -37,7 +38,7 @@ window.setupDrop = (senseElem, highlight try onDrop(uri, pos) catch e - console.log(e) + log(e) unhighlight() diff --git a/light9/web/graph.coffee b/light9/web/graph.coffee --- a/light9/web/graph.coffee +++ b/light9/web/graph.coffee @@ -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 @@ class AutoDependencies # 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 @@ class AutoDependencies # 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 --git a/light9/web/lib/bower.json b/light9/web/lib/bower.json --- a/light9/web/lib/bower.json +++ b/light9/web/lib/bower.json @@ -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 --git a/light9/web/light9-music.coffee b/light9/web/light9-music.coffee --- a/light9/web/light9-music.coffee +++ b/light9/web/light9-music.coffee @@ -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 --git a/light9/web/live/elements.html b/light9/web/live/elements.html --- a/light9/web/live/elements.html +++ b/light9/web/live/elements.html @@ -1,3 +1,7 @@ + + @@ -262,6 +266,7 @@ +