use __DEV__ instead of DEBUG

This commit is contained in:
Mark Vayngrib 2015-11-22 12:46:19 +00:00
parent 083f9fc081
commit 3c9c4e52e7
1 changed files with 1 additions and 2 deletions

View File

@ -62,8 +62,7 @@ function UdpSocket(options, onmessage) {
inherits(UdpSocket, EventEmitter) inherits(UdpSocket, EventEmitter)
UdpSocket.prototype._debug = function() { UdpSocket.prototype._debug = function() {
// for now if (__DEV__) {
if (typeof DEBUG !== 'undefined' && DEBUG) {
var args = [].slice.call(arguments) var args = [].slice.call(arguments)
args.unshift('socket-' + this._id) args.unshift('socket-' + this._id)
console.log.apply(console, args) console.log.apply(console, args)