             # requests pile up!).
             @_db.once('connect', @close)
             cb(undefined, @)
+
+    _dbg: (f) =>
+        return @_db._dbg("Changes(table='#{@_table}').#{f}")
 
     close: (cb) =>
         @emit('close', {action:'close'})

                    @_feed = feed
                    @_feed.on 'change', @_handle_change
                    cb()

    close: =>
        @emit('close')


class Changes extends EventEmitter
    constructor: (@_db, @_table, @_select, @_watch, @_where, cb) ->
        @dbg = @_dbg("constructor")
        @dbg("select=#{misc.to_json(@_select)}, watch=#{misc.to_json(@_watch)}, @_where=#{misc.to_json(@_where)}")
        try
            @_init_where()
