commented out annoying redundant logs

This commit is contained in:
thehobbit85 2018-01-05 11:22:28 -08:00
parent bd91614f42
commit 1cb311a899
2 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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