adding log to Object::debug()