         # We put explicit traces before the errors in this function,
         # since otherwise they can be very hard to debug.
         err = "misc.defaults -- TypeError: function takes inputs as an object #{error()}"
-        console.log(err)
+        console.debug(err)
         console.trace()
         if DEBUG
             throw err

            @notifications[path] = a = {}
        a.timestamp = event.timestamp
        a.id = event.id
        #console.log("process_event", event, path)
        #console.log(event.seen_by?.indexOf(@account_id))
        #console.log(event.read_by?.indexOf(@account_id))
        if event.seen_by? and event.seen_by.indexOf(@account_id) != -1
            a.seen = event.timestamp
        if event.read_by? and event.read_by.indexOf(@account_id) != -1

    error  = () ->
        try
            s = "(obj1=#{exports.trunc(exports.to_json(obj1),1024)}, obj2=#{exports.trunc(exports.to_json(obj2),1024)})"
            console.debug(s)
            return s
        catch error
            return ""
