 module.exports = class SourceIn extends require("events").EventEmitter
     constructor: (opts) ->
         @core = opts.core
+        
+        @log = @core.log.child mode:"sourcein"
         
         # grab our listening port
         @port = opts.port

        if type.toLowerCase() == "basic"
            value = new Buffer(value, 'base64').toString('ascii')
            [user,pass] = value.split ":"

            console.log "type/value is ", type, user, pass
            
            if pass == stream.opts.source_password
                true

            
        parser.on "headersComplete", (headers) =>
            if parser.info.protocol == "ICE" || parser.info.method == "SOURCE"
                @log.debug "ICY SOURCE attempt.", url:parser.info.url
                @_trySource sock, parser.info
                
                # get out of the way
