Fixes +6095. Only see kaefer output with debug=3

pull/85/head
Ruben Daniels 2015-04-20 17:50:52 +00:00
rodzic 40648d045f
commit f9520fa811
4 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -21,6 +21,7 @@ module.exports = function(options) {
var workspaceDir = options.workspaceDir;
var debug = options.debug !== undefined ? options.debug : false;
var collab = options.collab;
var packaging = options.packaging;
var staticPrefix = options.staticPrefix;

2
node_modules/architect/architect.js wygenerowano vendored
Wyświetl plik

@ -7,7 +7,7 @@ var EventEmitter = events.EventEmitter;
var exports = {};
var DEBUG = typeof location != "undefined" && location.href.match(/debug=[12]/) ? true : false;
var DEBUG = typeof location != "undefined" && location.href.match(/debug=[123]/) ? true : false;
// Only define Node-style usage using sync I/O if in node.
if (typeof module === "object") (function () {

Wyświetl plik

@ -39,6 +39,9 @@ define(function(require, exports, module) {
var protocolVersion = require("kaefer/version").protocol;
var smith = require("smith");
var URL = require("url");
var DEBUG = options.debug
&& (typeof location == "undefined"
|| location.href.indexOf("debug=3") > -1);
// The connected vfs unique id
var id;
@ -76,11 +79,11 @@ define(function(require, exports, module) {
if (loaded) return false;
loaded = true;
smith.debug = options.debug;
smith.debug = DEBUG;
connection = connectClient(connectEngine, {
preConnectCheck: preConnectCheck,
debug: options.debug
debug: DEBUG
});
connection.on("away", emit.bind(null, "away"));

Wyświetl plik

@ -119,7 +119,7 @@ function plugin(options, imports, register) {
token: req.params.token
});
opts.options.debug = req.params.debug == 1;
opts.options.debug = req.params.debug !== undefined;
res.setHeader("Cache-Control", "no-cache, no-store");
res.render(__dirname + "/views/standalone.html.ejs", {
architectConfig: getConfig(configType, opts),