fix cli access to moto and broker dbug
This commit is contained in:
parent
b35d5440a1
commit
7f7b125af4
6 changed files with 12 additions and 8 deletions
|
|
@ -1,5 +1,6 @@
|
|||
[
|
||||
"main/gapp",
|
||||
"moto/broker",
|
||||
"moto/license",
|
||||
"add/array",
|
||||
"add/class",
|
||||
|
|
@ -12,7 +13,6 @@
|
|||
"geo/base",
|
||||
"geo/bounds",
|
||||
"geo/line",
|
||||
"geo/mesh",
|
||||
"geo/point",
|
||||
"geo/paths",
|
||||
"geo/points",
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// dep: moto.broker
|
||||
gapp.register("kiri-mode.cam.slicer", [], (root, exports) => {
|
||||
|
||||
const { base, kiri } = root;
|
||||
const { base, kiri, moto } = root;
|
||||
const { config, util, polygons, newOrderedLine, newPoint, newLine } = base;
|
||||
const { sliceConnect, sliceDedup } = base;
|
||||
const { newSlice } = kiri;
|
||||
|
|
|
|||
|
|
@ -7,13 +7,13 @@
|
|||
// dep: geo.point
|
||||
// dep: geo.polygon
|
||||
// dep: geo.polygons
|
||||
// dep: moto.broker
|
||||
// dep: kiri.slice
|
||||
// dep: kiri-mode.cam.driver
|
||||
// dep: kiri-mode.cam.slicer2
|
||||
// dep: moto.broker
|
||||
gapp.register("kiri-mode.cam.topo", [], (root, exports) => {
|
||||
|
||||
const { base, kiri } = root;
|
||||
const { base, kiri, moto } = root;
|
||||
const { driver, newSlice } = kiri;
|
||||
const { CAM } = driver;
|
||||
const { polygons, newLine, newSlope, newPoint, newPolygon } = base;
|
||||
|
|
|
|||
|
|
@ -7,13 +7,13 @@
|
|||
// dep: geo.point
|
||||
// dep: geo.polygon
|
||||
// dep: geo.polygons
|
||||
// dep: moto.broker
|
||||
// dep: kiri.slice
|
||||
// dep: kiri-mode.cam.driver
|
||||
// dep: kiri-mode.cam.slicer2
|
||||
// dep: moto.broker
|
||||
gapp.register("kiri-mode.cam.topo", [], (root, exports) => {
|
||||
|
||||
const { base, kiri } = root;
|
||||
const { base, kiri, moto } = root;
|
||||
const { driver, newSlice } = kiri;
|
||||
const { CAM } = driver;
|
||||
const { polygons, newPoint, newPolygon, sliceConnect } = base;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
// use: kiri-mode.laser.driver
|
||||
gapp.register("kiri-run.worker", [], (root, exports) => {
|
||||
|
||||
const { base, kiri } = root;
|
||||
const { base, kiri, moto } = root;
|
||||
const { util, polygons, wasm_ctrl } = base;
|
||||
const { codec } = kiri;
|
||||
const { time } = util;
|
||||
|
|
|
|||
|
|
@ -100,7 +100,11 @@ class Broker {
|
|||
}
|
||||
}
|
||||
} else if (topic.indexOf(".topic.") < 0) {
|
||||
dbug.debug(`undelivered '${topic}'`, message);
|
||||
if (self.dbug) {
|
||||
self.dbug.debug(`undelivered '${topic}'`, message);
|
||||
} else {
|
||||
console.log(`undelivered '${topic}'`, message);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue