 
     db.post doc, (err,response) ->
       if err or not response.ok
-        console.log err
+        logger err
         calendar 'refetchEvents'
         return
       doc._id = response.id


        start_replication url

    console.log 'Started'

      startkey: moment(start).add(-1,'week').toJSON()
      endkey: moment(end).add(1,'week').toJSON()
      include_docs: true
    db.query 'calendar/locate', query, (err,response) ->
      if err
        logger err
        return

      # remove duplicate _ids
