     log.debug 'fetch old measures'
     Weight.all (err, scaleMeasures) ->
         return callback err if err
+        console.log scaleMeasures
         HeartBeat.all (err, heartBeats) ->
             return callback err if err
             BloodPressure.all (err, bloodPressures) ->

        # Get auth token.
        onceUrl = 'https://auth.withings.com/index/service/once/'
        request.post onceUrl, form: data, (err, res, body) =>
           return callback err if err

            body = JSON.parse body
            once = body.body.once

            if heartBeat.value? and not heartBeatHash[date]?
                heartBeatsToSave.push heartBeat

            if bloodPressure.systolic? and not bloodPressureHash[date]?
                bloodPressuresToSave.push bloodPressure

        log.debug "#{measuresToSave.length} weight measures to save"
