kopia lustrzana https://github.com/c9/core
Small wording fixes
rodzic
0c99cd47b2
commit
439c0393d4
|
@ -180,9 +180,8 @@ Vfs.prototype._createEngine = function(vfs, options) {
|
||||||
var listenForEIOSocketClose = function (eioSocket) {
|
var listenForEIOSocketClose = function (eioSocket) {
|
||||||
if (!eioSocket || listeningForEIOSocketClose) return;
|
if (!eioSocket || listeningForEIOSocketClose) return;
|
||||||
eioSocket.once("close", function (reason, description) {
|
eioSocket.once("close", function (reason, description) {
|
||||||
var logMetadata = {collab: options.collab, reason: reason, description: description, id: that.id, sid: socket.id, pid: that.pid};
|
var logMetadata = {message: "Socket closed", collab: options.collab, reason: reason, description: description, id: that.id, sid: socket.id, pid: that.pid};
|
||||||
console.log("Socket closed", logMetadata);
|
console.log(logMetadata);
|
||||||
logMetadata.message = "Socket closed";
|
|
||||||
that.logger.log(logMetadata);
|
that.logger.log(logMetadata);
|
||||||
listeningForEIOSocketClose = false;
|
listeningForEIOSocketClose = false;
|
||||||
});
|
});
|
||||||
|
@ -196,9 +195,8 @@ Vfs.prototype._createEngine = function(vfs, options) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
socket.on('disconnect', function (err) {
|
socket.on('disconnect', function (err) {
|
||||||
var logMetadata = {collab: options.collab, ere: err, id: that.id, sid: socket.id, pid: that.pid};
|
var logMetadata = {message: "Socket disconnected", collab: options.collab, err: err, id: that.id, sid: socket.id, pid: that.pid};
|
||||||
console.log("Socket disconnected", logMetadata);
|
console.log(logMetadata);
|
||||||
logMetadata.message = "Socket disconnected";
|
|
||||||
that.logger.log(logMetadata);
|
that.logger.log(logMetadata);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue