 			Indexer.save_index_to_mongo result, (err) ->
 				if err
 					throw err
-				console.log ">> done"
+				logger.log "done"
 				process.exit()
 		else
-			console.log ">> done"
+			logger.log "done"
 			process.exit()

fs = require 'fs'
child_process = require 'child_process'
request = require 'request'
cheerio = require 'cheerio'
_ = require 'underscore'

				callback null, final_index

	save_index_to_mongo: (index, callback) ->
		db.packageIndex.ensureIndex {language: 1, name: 1}, {}, (err, result) ->
			if err
				return callback err
