commented out annoying redundant logs
This commit is contained in:
parent
bd91614f42
commit
1cb311a899
@ -54,10 +54,10 @@ function TcpServer(connectionListener: (socket: Socket) => void) {
|
||||
util.inherits(TcpServer, EventEmitter);
|
||||
|
||||
TcpServer.prototype._debug = function() {
|
||||
if (__DEV__) {
|
||||
var args = [].slice.call(arguments);
|
||||
console.log.apply(console, args);
|
||||
}
|
||||
// if (__DEV__) {
|
||||
// var args = [].slice.call(arguments);
|
||||
// console.log.apply(console, args);
|
||||
// }
|
||||
};
|
||||
|
||||
// TODO : determine how to properly overload this with flow
|
||||
|
||||
10
TcpSocket.js
10
TcpSocket.js
@ -67,11 +67,11 @@ function TcpSocket(options: ?{ id: ?number }) {
|
||||
util.inherits(TcpSocket, stream.Duplex);
|
||||
|
||||
TcpSocket.prototype._debug = function() {
|
||||
if (__DEV__) {
|
||||
var args = [].slice.call(arguments);
|
||||
args.unshift('socket-' + this._id);
|
||||
console.log.apply(console, args);
|
||||
}
|
||||
// if (__DEV__) {
|
||||
// var args = [].slice.call(arguments);
|
||||
// args.unshift('socket-' + this._id);
|
||||
// console.log.apply(console, args);
|
||||
// }
|
||||
};
|
||||
|
||||
// TODO : determine how to properly overload this with flow
|
||||
|
||||
Loading…
Reference in New Issue
Block a user