src/misc/hacky-logs.js
function debug () {
    let a = [...arguments]
    a = a.map(d => d instanceof Error ? d.toString() : d)
    write({
      debug: true,
      time: new Date().getTime(),
      name,
      data: a
    })
    if (rd) rd.apply(rd, arguments)
  }
function debug () {
    let a = [...arguments]
    a = a.map(d => d instanceof Error ? d.toString() : d)
    write({
      debug: true,
      time: new Date().getTime(),
      name,
      data: a
    })
    if (rd) rd.apply(rd, arguments)
  }
/* function processQue () {
if (!qq) {
dwait.push(processQue)
qq = true
}
que.forEach(d => write(d))
que = null
}