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)
UdpSocket.prototype._debug = function() {
// for now
if (typeof DEBUG !== 'undefined' && DEBUG) {
if (__DEV__) {
var args = [].slice.call(arguments)
args.unshift('socket-' + this._id)
console.log.apply(console, args)