Added logging to couchdb.