 
     (error, results) ->
       if error?
-        console.log('Failed to fetch Operations('+docName+'-'+start+'..'+end+'): '+util.inspect(error))
+        console.error('Failed to fetch Operations('+docName+'-'+start+'..'+end+'): '+util.inspect(error))
         callback?('Failed to fetch operations')
       else
         data = []


    (error, results) ->
      if error?
        console.log('Failed to save Operation('+docName+'-'+opData.v+'): '+util.inspect(error))
        callback?('Failure')
      else
        callback?()

          callback?(error)
        else if results? and results.get_snapshot?
          item = results.get_snapshot.Items[0]
          console.error('Failed to get snapshot data for Document('+item.doc.S+'-'+item.v.N+'): '+util.inspect(error))
          callback?('Failed to get snapshot data')
        else
          console.error('Failed to get snapshot metadata for Document('+docName+'): '+util.inspect(error))
          callback?('Failed to get snapshot metadata')
      else
        item = results.get_snapshot.Items[0]
