swagger-ui/lib/shred.bundle.js
function(level,message) {
  var debug = (level=="debug"||level=="error");
  if (!message) { return message.toString(); }
  if (typeof(message) == "object") {
    if (message instanceof Error && debug) {
      return message.stack;
    } else {
      return inspect(message);
    }
  } else {
    return message.toString();
  }
}
function(level,message) {
  var debug = (level=="debug"||level=="error");
  if (!message) { return message.toString(); }
  if (typeof(message) == "object") {
    if (message instanceof Error && debug) {
      return message.stack;
    } else {
      return inspect(message);
    }
  } else {
    return message.toString();
  }
}
this is a quick-and-dirty logger. there are other nicer loggers out there but the ones i found were also somewhat involved. this one has a Ruby logger type interface  we can easily replace this, provide the info, debug, etc. methods are the same. or, we can change Haiku to use a more standard node.js interface